[199/203] Merge namespace scopes in eval.c

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

Commit Message

Tom Tromey Jan. 1, 2021, 9:47 p.m.
The big deletion patch left some identical namespace scopes sitting
next to one another.  This patch removes the redundant "namespace
expr"s.

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

	* eval.c: Merge "namespace" scopes.
---
 gdb/ChangeLog |  4 ++++
 gdb/eval.c    | 10 ----------
 2 files changed, 4 insertions(+), 10 deletions(-)

-- 
2.26.2

Patch

diff --git a/gdb/eval.c b/gdb/eval.c
index 1f87748e80b..4d467cd436d 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -2618,11 +2618,6 @@  unop_memval_type_operation::evaluate_for_address (struct expression *exp,
 		     std::get<1> (m_storage)->evaluate (nullptr, exp, noside));
 }
 
-}
-
-namespace expr
-{
-
 value *
 var_value_operation::evaluate_for_address (struct expression *exp,
 					   enum noside noside)
@@ -2803,11 +2798,6 @@  var_value_operation::evaluate_for_sizeof (struct expression *exp,
   return evaluate_subexp_for_sizeof_base (exp, type);
 }
 
-}
-
-namespace expr
-{
-
 value *
 var_msym_value_operation::evaluate_for_cast (struct type *to_type,
 					     struct expression *exp,