summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-06-02 20:51:35 +0000
committerRoland McGrath <roland@redhat.com>1993-06-02 20:51:35 +0000
commit4a9fdcd65f6a0b8fc0e3f646e4a5bb8de65ee3e3 (patch)
tree71a8605afb860e69d1a96ef458b83b495f686c59 /file.c
parent80091295dfa68b52d14452e30fff7dbb3193cab6 (diff)
downloadgunmake-4a9fdcd65f6a0b8fc0e3f646e4a5bb8de65ee3e3.tar.gz
Formerly file.c.~24~
Diffstat (limited to 'file.c')
-rw-r--r--file.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/file.c b/file.c
index e5cc418..1501af9 100644
--- a/file.c
+++ b/file.c
@@ -88,27 +88,6 @@ enter_file (name)
if (*name == '\0')
abort ();
- /* This is also done in parse_file_seq, so this is redundant
- for names read from makefiles. It is here for names passed
- on the command line. */
- while (name[0] == '.' && name[1] == '/' && name[2] != '\0')
- {
- name += 2;
- while (*name == '/')
- /* Skip following slashes: ".//foo" is "foo", not "/foo". */
- ++name;
- }
-
- if (*name == '\0')
- {
- /* It was all slashes! Move back to the dot and truncate
- it after the first slash, so it becomes just "./". */
- do
- --name;
- while (name[0] != '.');
- name[2] = '\0';
- }
-
hashval = 0;
for (n = name; *n != '\0'; ++n)
HASH (hashval, *n);