From f2a98603a807101722f12b8d7a1aca9651deb133 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 8 Mar 2021 07:27:57 -0700 Subject: Remove now-unused C evaluator code Now that the C parser has switched to the new style, there is no need for the old C evaluation code. This affects some other languages that were relying on the C code. gdb/ChangeLog 2021-03-08 Tom Tromey * go-lang.c (go_language::expression_ops): Don't declare. * go-lang.h (class go_language) : Remove. * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl): Remove. (class opencl_language) : Remove. * d-lang.c (class d_language) : Remove. * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare. * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove. (class c_language, class cplus_language, class asm_language) (class minimal_language) : Remove. --- gdb/go-lang.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'gdb/go-lang.c') diff --git a/gdb/go-lang.c b/gdb/go-lang.c index eafd868..3af89b3 100644 --- a/gdb/go-lang.c +++ b/gdb/go-lang.c @@ -386,14 +386,6 @@ go_language::demangle_symbol (const char *mangled_name, int options) const return result; } -/* See language.h. */ - -const struct exp_descriptor * -go_language::expression_ops () const -{ - return &exp_descriptor_c; -} - /* Given a Go symbol, return its package or NULL if unknown. Space for the result is malloc'd, caller must free. */ -- cgit v1.1