]> git.ipfire.org Git - thirdparty/coreutils.git/commit
test: removed dead code for unrecognised binary operators
authorHarry Fellowes <harryfellowes1@gmail.com>
Fri, 25 Jul 2025 13:26:38 +0000 (14:26 +0100)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 25 Jul 2025 19:27:39 +0000 (12:27 -0700)
commitecde78e1df048a4c56e73da7c61424f346c8f5d7
treed179474aa8c578adc5e805919d8864ee1efbbf02
parent56eaa4ffc3960987d158eb73c94dcc22c912ffab
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
src/test.c