summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-10-31 22:18:36 (GMT)
committerEvan Martin <martine@danga.com>2012-12-29 20:34:25 (GMT)
commit34b46f28c5496def6f8c72bf96bd30830e5477ef (patch)
treeaae55c2da072514fd47d178155e98a18663a3c4c /src
parent94ea3e9d087ced80aaa62ed25fd239be825814a0 (diff)
downloadNinja-34b46f28c5496def6f8c72bf96bd30830e5477ef.zip
Ninja-34b46f28c5496def6f8c72bf96bd30830e5477ef.tar.gz
Ninja-34b46f28c5496def6f8c72bf96bd30830e5477ef.tar.bz2
drop the "rules" tool completely
I had already broken this earlier, but the refactor of variable handling broke it completely.
Diffstat (limited to 'src')
-rw-r--r--src/ninja.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/ninja.cc b/src/ninja.cc
index 38f1d78..324b884 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -410,23 +410,6 @@ int ToolTargets(Globals* globals, int argc, char* argv[]) {
}
}
-int ToolRules(Globals* globals, int argc, char* /* argv */[]) {
- for (map<string, const Rule*>::iterator i = globals->state->rules_.begin();
- i != globals->state->rules_.end(); ++i) {
- if (i->second->description().empty()) {
- printf("%s\n", i->first.c_str());
- } else {
- printf("%s: %s\n",
- i->first.c_str(),
- // XXX I changed it such that we don't have an easy way
- // to get the source text anymore, so this output is
- // unsatisfactory. How useful is this command, anyway?
- i->second->description().Serialize().c_str());
- }
- }
- return 0;
-}
-
void PrintCommands(Edge* edge, set<Edge*>* seen) {
if (!edge)
return;
@@ -551,8 +534,6 @@ int ChooseTool(const string& tool_name, const Tool** tool_out) {
Tool::RUN_AFTER_LOAD, ToolGraph },
{ "query", "show inputs/outputs for a path",
Tool::RUN_AFTER_LOAD, ToolQuery },
- { "rules", "list all rules",
- Tool::RUN_AFTER_LOAD, ToolRules },
{ "targets", "list targets by their rule or depth in the DAG",
Tool::RUN_AFTER_LOAD, ToolTargets },
{ "urtle", NULL,