It is a trivial wrapper around the supports_command_editing method,
remove it.
Change-Id: I0fe3d7dc69601b3b89f82e055f7fe3d4af1becf7
Approved-By: Tom Tromey <tom@tromey.com>
/* Don't try enabling editing if the interpreter doesn't support it
(e.g., MI). */
- if (!interp_supports_command_editing (top_level_interpreter ())
- || !interp_supports_command_editing (command_interp ()))
+ if (!top_level_interpreter ()->supports_command_editing ()
+ || !command_interp ()->supports_command_editing ())
return;
if (editing)
return current_ui->current_interpreter;
}
-/* See interp.h */
-
-int
-interp_supports_command_editing (struct interp *interp)
-{
- return interp->supports_command_editing ();
-}
-
/* interp_exec - This executes COMMAND_STR in the current
interpreter. */
extern void clear_interpreter_hooks (void);
-/* Returns true if INTERP supports using the readline library; false
- if it uses GDB's own simplified form of readline. */
-extern int interp_supports_command_editing (struct interp *interp);
-
/* List the possible interpreters which could complete the given
text. */
extern void interpreter_completer (struct cmd_list_element *ignore,