projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d4b6c7
)
lexer: Get rid of useless code in lex_get_error().
author
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 18 Mar 2023 20:55:40 +0000
(13:55 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 18 Mar 2023 20:55:40 +0000
(13:55 -0700)
This function ellipsized the syntax and then didn't do anything with the
result.
src/language/lexer/lexer.c
patch
|
blob
|
history
diff --git
a/src/language/lexer/lexer.c
b/src/language/lexer/lexer.c
index d22985c7e5350f7e374d1b78f5613890eedd957d..03f57ee48e18256fe31cd5ba4b8cbbf6f4a059eb 100644
(file)
--- a/
src/language/lexer/lexer.c
+++ b/
src/language/lexer/lexer.c
@@
-2095,10
+2095,6
@@
lex_source_msg_valist (struct lex_source *src, enum msg_class class,
static void
lex_get_error (struct lex_source *src, const struct lex_token *token)
{
- char syntax[64];
- str_ellipsize (ss_buffer (&src->buffer[token->token_pos], token->token_len),
- syntax, sizeof syntax);
-
struct string s = DS_EMPTY_INITIALIZER;
ds_put_cstr (&s, token->token.string.string);