Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
missingdeps: remove some commented out/redundant code
Browse files Browse the repository at this point in the history
Tomasz Śniatowski committed Sep 20, 2017
1 parent 7249b35 commit 57ee7b3
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/ninja.cc
Original file line number Diff line number Diff line change
@@ -614,12 +614,10 @@ void MissingDependencyScanner::ProcessNodeDeps(Node* node, Node** dep_nodes,
}
}

if (!deplog_nodes_without_generator.empty()) {
for (vector<Node*>::iterator ni = deplog_nodes_without_generator.begin();
ni != deplog_nodes_without_generator.end(); ++ni) {
printf("No generator: %s uses %s, but I don't know who generates that.\n",
node->path().c_str(), (*ni)->path().c_str());
}
for (vector<Node*>::iterator ni = deplog_nodes_without_generator.begin();
ni != deplog_nodes_without_generator.end(); ++ni) {
printf("No generator: %s uses %s, but I don't know who generates that.\n",
node->path().c_str(), (*ni)->path().c_str());
}
if (!missing_deps.empty()) {
set<string> missing_deps_rule_names;
@@ -637,11 +635,6 @@ void MissingDependencyScanner::ProcessNodeDeps(Node* node, Node** dep_nodes,
}
}
missing_dep_path_count_ += missing_deps_rule_names.size();
for (set<string>::iterator re = missing_deps_rule_names.begin();
re != missing_deps_rule_names.end(); ++re) {
//printf("Error: %s lacks a dep path to %s\n", node->path().c_str(),
// re->c_str());
}
nodes_missing_deps_.insert(node);
}
}

0 comments on commit 57ee7b3

Please sign in to comment.