[commit] Remove unused parse_expression_in_context
Joel Brobecker
brobecker@adacore.com
Sun Dec 16 13:41:00 GMT 2007
While working on providing a parse-context to the parse routines,
I realized that parse_expression_in_context is not used at all.
I also checked insight as well, just to make sure.
2007-12-16 Joel Brobecker <brobecker@adacore.com>
* expression.h (parse_expression_in_context): Delete prototype.
* parse.c (parse_expression_in_context): Delete.
Verified by rebuilding GDB on x86-linux.
Checked in as obvious.
--
Joel
-------------- next part --------------
Index: expression.h
===================================================================
RCS file: /cvs/src/src/gdb/expression.h,v
retrieving revision 1.24
diff -u -p -r1.24 expression.h
--- expression.h 25 Oct 2007 18:01:58 -0000 1.24
+++ expression.h 16 Dec 2007 13:29:15 -0000
@@ -389,8 +389,6 @@ struct expression
extern struct expression *parse_expression (char *);
-extern struct expression *parse_expression_in_context (char *, int);
-
extern struct expression *parse_exp_1 (char **, struct block *, int);
/* The innermost context required by the stack and register variables
Index: parse.c
===================================================================
RCS file: /cvs/src/src/gdb/parse.c,v
retrieving revision 1.67
diff -u -p -r1.67 parse.c
--- parse.c 26 Oct 2007 22:13:41 -0000 1.67
+++ parse.c 16 Dec 2007 13:29:16 -0000
@@ -1027,20 +1027,6 @@ parse_expression (char *string)
return exp;
}
-
-/* As for parse_expression, except that if VOID_CONTEXT_P, then
- no value is expected from the expression. */
-
-struct expression *
-parse_expression_in_context (char *string, int void_context_p)
-{
- struct expression *exp;
- exp = parse_exp_in_context (&string, 0, 0, void_context_p);
- if (*string != '\000')
- error (_("Junk after end of expression."));
- return exp;
-}
-
/* A post-parser that does nothing */
void
More information about the Gdb-patches
mailing list