diff options
author | Brad King <brad.king@kitware.com> | 2019-02-12 16:00:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-04-18 12:21:44 (GMT) |
commit | c21f3f2a1d8cb0aea45804ffc788947c4096281b (patch) | |
tree | f2f2c3a4860477c29b589112bb73dd724b7d6889 /src/clean.cc | |
parent | 2375707bdfc83c79c94cac93a957de71c294737c (diff) | |
download | Ninja-c21f3f2a1d8cb0aea45804ffc788947c4096281b.zip Ninja-c21f3f2a1d8cb0aea45804ffc788947c4096281b.tar.gz Ninja-c21f3f2a1d8cb0aea45804ffc788947c4096281b.tar.bz2 |
clean: remove unnecessary Cleaner constructor variant
`Cleaner` provides two constructors that are the same except that one
constructs a "real" disk interface internally and the other takes a
caller-provided disk interface. A real disk interface is already
available at the only call site for the former constructor. Use it
directly and drop the unnecessary constructor variant.
Diffstat (limited to 'src/clean.cc')
-rw-r--r-- | src/clean.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/clean.cc b/src/clean.cc index ce6a575..caee8d3 100644 --- a/src/clean.cc +++ b/src/clean.cc @@ -22,16 +22,6 @@ #include "state.h" #include "util.h" -Cleaner::Cleaner(State* state, const BuildConfig& config) - : state_(state), - config_(config), - removed_(), - cleaned_(), - cleaned_files_count_(0), - disk_interface_(new RealDiskInterface), - status_(0) { -} - Cleaner::Cleaner(State* state, const BuildConfig& config, DiskInterface* disk_interface) |