summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2005-06-25 21:30:13 +0000
committerPaul Smith <psmith@gnu.org>2005-06-25 21:30:13 +0000
commit6cdaff0948bbec3220d5cb071f79d5f2e1c9b083 (patch)
tree407efa2f97b6dfb472fb96396d6fa73892f38a97 /misc.c
parent1dd9ed1c0537cb2583e1de8367994560ad1470aa (diff)
downloadgunmake-6cdaff0948bbec3220d5cb071f79d5f2e1c9b083.tar.gz
Fix Savannah bug #1454: skip over semicolons (and comments) inside variable
references in target definition lines.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/misc.c b/misc.c
index 995fd20..ac50270 100644
--- a/misc.c
+++ b/misc.c
@@ -149,22 +149,6 @@ collapse_continuations (char *line)
*out = '\0';
}
-
-
-/* Remove comments from LINE.
- This is done by copying the text at LINE onto itself. */
-
-void
-remove_comments (char *line)
-{
- char *comment;
-
- comment = find_char_unquote (line, '#', 0, 0);
-
- if (comment != 0)
- /* Cut off the line at the #. */
- *comment = '\0';
-}
/* Print N spaces (used in debug for target-depth). */