diff options
author | Evan Martin <martine@danga.com> | 2011-12-07 16:45:16 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-12-07 16:47:38 (GMT) |
commit | c6144ccfe366b694bf034bdafa07e7c47ac8bf30 (patch) | |
tree | e373660d4da9ba0b55a05cf719e28d6dd91f5a68 /src/clean.cc | |
parent | 276f2b319188ea905ebfc39ebaab684a2255c012 (diff) | |
download | Ninja-c6144ccfe366b694bf034bdafa07e7c47ac8bf30.zip Ninja-c6144ccfe366b694bf034bdafa07e7c47ac8bf30.tar.gz Ninja-c6144ccfe366b694bf034bdafa07e7c47ac8bf30.tar.bz2 |
merge FileStat into Node
The two were always one-to-one anyway. I started adding accessors
to FileStat and then realized most users wanted them on Node and
that forwarding them through was silly.
Diffstat (limited to 'src/clean.cc')
-rw-r--r-- | src/clean.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clean.cc b/src/clean.cc index 8ae4385..c768629 100644 --- a/src/clean.cc +++ b/src/clean.cc @@ -109,7 +109,7 @@ int Cleaner::CleanAll(bool generator) { continue; for (vector<Node*>::iterator out_node = (*e)->outputs_.begin(); out_node != (*e)->outputs_.end(); ++out_node) { - Remove((*out_node)->file_->path_); + Remove((*out_node)->path()); } if (!(*e)->rule().depfile_.empty()) Remove((*e)->EvaluateDepFile()); @@ -120,7 +120,7 @@ int Cleaner::CleanAll(bool generator) { void Cleaner::DoCleanTarget(Node* target) { if (target->in_edge_) { - Remove(target->file_->path_); + Remove(target->path()); for (vector<Node*>::iterator n = target->in_edge_->inputs_.begin(); n != target->in_edge_->inputs_.end(); ++n) { @@ -182,7 +182,7 @@ void Cleaner::DoCleanRule(const Rule* rule) { for (vector<Node*>::iterator out_node = (*e)->outputs_.begin(); out_node != (*e)->outputs_.end(); ++out_node) - Remove((*out_node)->file_->path_); + Remove((*out_node)->path()); } int Cleaner::CleanRule(const Rule* rule) { |