mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
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
This commit is contained in:
1 parent
56eaa4ffc3
commit
ecde78e1df
1 file changed
+1
-2
+1
-2
@@ -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] == '='
|
||||
|
||||
Reference in new issue
Block a user