diff options
| author | Harry Fellowes <harryfellowes1@gmail.com> | 2025-07-25 14:26:38 +0100 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2025-07-25 12:27:39 -0700 |
| commit | ecde78e1df048a4c56e73da7c61424f346c8f5d7 (patch) | |
| tree | d179474aa8c578adc5e805919d8864ee1efbbf02 | |
| parent | tests: date: add tests for the Ethiopian calendar (diff) | |
| download | coreutils-ecde78e1df048a4c56e73da7c61424f346c8f5d7.tar.gz coreutils-ecde78e1df048a4c56e73da7c61424f346c8f5d7.zip | |
test: removed dead code for unrecognised binary operators
the fallback error in binary_operator() was unreachable, since invalid
binary operators are rejected in three_arguments() via binop() which
returns false and prevents entry into binary_operator().
this dead code was unreachable and safe to remove
ref: line 636 where "binary operator expected" is generated.
Signed-off-by: Harry Fellowes <harryfellowes1@gmail.com>
Copyright-paperwork-exempt: Yes
| -rw-r--r-- | src/test.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test.c b/src/test.c index 3df6adf28..d8be5a70b 100644 --- a/src/test.c +++ b/src/test.c @@ -353,8 +353,7 @@ binary_operator (bool l_is_l) break; } - /* FIXME: is this dead code? */ - test_syntax_error (_("%s: unknown binary operator"), quote (argv[op])); + /* Dead code removed: unrecognised binary operators are filtered before binary_operator() is called, see line 636*/ } if (argv[op][0] == '=' |
