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
commit562240569082f5f27acc29d92add4d5b2174a87a (patch)
tree407efa2f97b6dfb472fb96396d6fa73892f38a97 /misc.c
parent1cbb15f2545882ded5df14363ad289383d9c66ff (diff)
downloadmake-562240569082f5f27acc29d92add4d5b2174a87a.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 995fd202..ac502709 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). */