summaryrefslogtreecommitdiffstats
path: root/src/parsers.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-05-02 02:53:50 (GMT)
committerEvan Martin <martine@danga.com>2011-05-02 14:21:36 (GMT)
commitcc65aefd87b360924625108c5ab9bc56a169706a (patch)
treeaea155de8851545e830c1e6a4fd5fd92908f7fff /src/parsers.cc
parentd660db1f8b7f1f2c1b87d2fa06da26fdc45809c3 (diff)
downloadNinja-cc65aefd87b360924625108c5ab9bc56a169706a.zip
Ninja-cc65aefd87b360924625108c5ab9bc56a169706a.tar.gz
Ninja-cc65aefd87b360924625108c5ab9bc56a169706a.tar.bz2
remove ROOT_HACK hack; it is unused
Diffstat (limited to 'src/parsers.cc')
-rw-r--r--src/parsers.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/parsers.cc b/src/parsers.cc
index ae222ea..d22dd97 100644
--- a/src/parsers.cc
+++ b/src/parsers.cc
@@ -287,15 +287,6 @@ bool ManifestParser::Parse(const string& input, string* err) {
string name, value;
if (!ParseLet(&name, &value, true, err))
return false;
- if (value.substr(0, 9) == "ROOT_HACK") {
- // XXX remove this hack, or make it more principled.
- char cwd[1024];
- if (!getcwd(cwd, sizeof(cwd))) {
- perror("getcwd");
- return 1;
- }
- value = cwd + value.substr(9);
- }
env_->AddBinding(name, value);
}
break;