diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2020-10-14 11:57:24 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2020-10-14 11:57:24 -0400 |
commit | 35c1cf34269654f6bf254be7cd5bd46e28d29bd3 (patch) | |
tree | e29dac61df14b8c61fad16b0013aafb6459953ab /src | |
parent | 10daafd5b4fbe8cd8c1b2d4ec34548329b14acd6 (diff) | |
download | flex-git-35c1cf34269654f6bf254be7cd5bd46e28d29bd3.tar.gz |
Remove unused code.
Diffstat (limited to 'src')
-rw-r--r-- | src/misc.c | 18 |
1 files changed, 2 insertions, 16 deletions
@@ -633,23 +633,9 @@ void skelout (bool announce) if (buf[0] == '%') { /* control line */ /* print the control line as a comment. */ if (ctrl.ddebug && buf[1] != '#') { - bool escaped = buf[strlen (buf) - 1] == '\\'; - if (escaped) { - comment(buf); - out ("\\\n"); - } else { - comment(buf); - outc ('\n'); - } + comment(buf); + outc ('\n'); } - - /* We've been accused of using cryptic markers in the skel. - * So we'll use emacs-style-hyphenated-commands. - * We might consider a hash if this if-else-if-else - * chain gets too large. - */ -#define cmd_match(s) (strncmp(buf,(s),strlen(s))==0) - if (buf[1] == '#') { /* %# indicates comment line to be ignored */ } |