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.h | |
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.h')
-rw-r--r-- | src/clean.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/clean.h b/src/clean.h index 19432ab..a007486 100644 --- a/src/clean.h +++ b/src/clean.h @@ -28,11 +28,7 @@ struct Rule; struct DiskInterface; struct Cleaner { - /// Build a cleaner object with a real disk interface. - Cleaner(State* state, const BuildConfig& config); - /// Build a cleaner object with the given @a disk_interface - /// (Useful for testing). Cleaner(State* state, const BuildConfig& config, DiskInterface* disk_interface); |