summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-12-07 17:41:07 (GMT)
committerEvan Martin <martine@danga.com>2011-12-07 17:41:07 (GMT)
commit63d136fb891f365b551621220ce3dd1022c14182 (patch)
tree04bebd45659759abcc192a04cdeb8022cf29bf5e /src
parentd58d918bafb26af9fd0c65cd61058ad29c5d2f4b (diff)
downloadNinja-63d136fb891f365b551621220ce3dd1022c14182.zip
Ninja-63d136fb891f365b551621220ce3dd1022c14182.tar.gz
Ninja-63d136fb891f365b551621220ce3dd1022c14182.tar.bz2
remove unused function
Diffstat (limited to 'src')
-rw-r--r--src/graph.h3
-rw-r--r--src/state_test.cc2
2 files changed, 1 insertions, 4 deletions
diff --git a/src/graph.h b/src/graph.h
index 6756417..97b0644 100644
--- a/src/graph.h
+++ b/src/graph.h
@@ -99,9 +99,6 @@ private:
struct Rule {
Rule(const string& name) : name_(name), generator_(false), restat_(false) { }
- bool ParseCommand(const string& command, string* err) {
- return command_.Parse(command, err);
- }
string name_;
EvalString command_;
EvalString description_;
diff --git a/src/state_test.cc b/src/state_test.cc
index 83fd0fd..5d91532 100644
--- a/src/state_test.cc
+++ b/src/state_test.cc
@@ -23,7 +23,7 @@ TEST(State, Basic) {
State state;
Rule* rule = new Rule("cat");
string err;
- EXPECT_TRUE(rule->ParseCommand("cat $in > $out", &err));
+ EXPECT_TRUE(rule->command_.Parse("cat $in > $out", &err));
ASSERT_EQ("", err);
state.AddRule(rule);
Edge* edge = state.AddEdge(rule);