diff options
-rw-r--r-- | src/graph.h | 3 | ||||
-rw-r--r-- | src/state_test.cc | 2 |
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); |