aboutsummaryrefslogtreecommitdiff
path: root/rule.cc
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-06-27 05:48:38 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-06-29 12:26:47 +0900
commitd9533329dc5e6a969882a89349fa8c69927774e0 (patch)
tree17dc950d6821371582c4db019c40d4356536387a /rule.cc
parent6f04aed67d68992c7b5c635b6c1f7aa83fdeb1b7 (diff)
Trim leading ./ when kati includes a file
Diffstat (limited to 'rule.cc')
-rw-r--r--rule.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/rule.cc b/rule.cc
index 88f713c..7c882a3 100644
--- a/rule.cc
+++ b/rule.cc
@@ -24,15 +24,6 @@
namespace {
-// Strip leading sequences of './' from file names, so that ./file
-// and file are considered to be the same file.
-// From http://www.gnu.org/software/make/manual/make.html#Features
-StringPiece TrimLeadingCurdir(StringPiece s) {
- while (s.substr(0, 2) == "./")
- s = s.substr(2);
- return s;
-}
-
static void ParseInputs(Rule* r, StringPiece s) {
bool is_order_only = false;
for (StringPiece input : WordScanner(s)) {