[195/203] Remove OP_UNUSED_LAST

Message ID 20210101214723.1784144-196-tom@tromey.com
State Superseded
Headers show
Series
  • Refactor expressions
Related show

Commit Message

Tom Tromey Jan. 1, 2021, 9:47 p.m.
OP_UNUSED_LAST is no longer needed with C++ -- the trailing comma is
fine.

gdb/ChangeLog
2021-01-01  Tom Tromey  <tom@tromey.com>

	* expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
---
 gdb/ChangeLog    | 4 ++++
 gdb/expression.h | 3 ---
 2 files changed, 4 insertions(+), 3 deletions(-)

-- 
2.26.2

Patch

diff --git a/gdb/expression.h b/gdb/expression.h
index bca4c6d9fe2..3f0ab4ec38b 100644
--- a/gdb/expression.h
+++ b/gdb/expression.h
@@ -47,9 +47,6 @@  enum exp_opcode : uint8_t
 #include "std-operator.def"
 
 #undef OP
-
-    /* Existing only to swallow the last comma (',') from last .inc file.  */
-    OP_UNUSED_LAST
   };
 
 /* Values of NOSIDE argument to eval_subexp.  */