summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Despres <nicolas.despres@gmail.com>2011-04-10 17:57:28 (GMT)
committerNicolas Despres <nicolas.despres@gmail.com>2011-04-26 11:20:08 (GMT)
commit529f52e73106e9a744b433e574467a945f6c6d26 (patch)
tree47726fd2cfe3bf8c0ce7e8170acc600e33b30020
parent2e616a9c46d681294b72764423a0ffc08f10cb1f (diff)
downloadNinja-529f52e73106e9a744b433e574467a945f6c6d26.zip
Ninja-529f52e73106e9a744b433e574467a945f6c6d26.tar.gz
Ninja-529f52e73106e9a744b433e574467a945f6c6d26.tar.bz2
Remove no longer used current working directory.
It has been introduced by 761a3c when ManifestParser::set_root() existed. It is no longer the case so we can save some time querying it now.
-rw-r--r--src/ninja.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/ninja.cc b/src/ninja.cc
index cd64c84..9a9a771 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -19,7 +19,6 @@
#include "getopt.h"
#else
#include <getopt.h>
-#include <limits.h>
#endif
#include <stdio.h>
#include <string.h>
@@ -184,12 +183,6 @@ int main(int argc, char** argv) {
argv += optind;
argc -= optind;
- char cwd[PATH_MAX];
- if (!getcwd(cwd, sizeof(cwd))) {
- perror("ninja: getcwd");
- return 1;
- }
-
State state;
RealFileReader file_reader;
ManifestParser parser(&state, &file_reader);