[v3,198/206] Remove OP_UNUSED_LAST

Message ID 20210220201609.838264-199-tom@tromey.com
State New
Headers show
Series
  • Refactor expressions
Related show

Commit Message

Tom Tromey Feb. 20, 2021, 8:16 p.m.
OP_UNUSED_LAST is no longer needed with C++ -- the trailing comma is
fine.

gdb/ChangeLog
2021-02-20  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 31482be11c9..eae986af747 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.  */