[v3,202/206] Merge namespace scopes in eval.c

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

Commit Message

Tom Tromey Feb. 20, 2021, 8:16 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-02-20  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 c8f5dfae1e0..ba77d1ac309 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -2629,11 +2629,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)
@@ -2816,11 +2811,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,