Mercurial > octave
changeset 27259:a42821748671
eliminate some useless octave_link functions
* octave-link.h, octave-link.cc (octave_link::generate_events,
octave_link::do_generate_events, octave_link::entered_readline_hook,
octave_link::do_entered_readline_hook,
octave_link::finished_readline_hook,
octave_link::do_finished_readline_hook): Delete no-op functions.
(octave_readline_hook): Eliminate calls to deleted functions.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 18 Jul 2019 00:08:07 -0400 |
parents | 922c47ff5218 |
children | 5ac60319575b |
files | libinterp/corefcn/octave-link.cc libinterp/corefcn/octave-link.h |
diffstat | 2 files changed, 0 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/octave-link.cc Wed Jul 17 21:52:46 2019 +0200 +++ b/libinterp/corefcn/octave-link.cc Thu Jul 18 00:08:07 2019 -0400 @@ -41,10 +41,7 @@ static int octave_readline_hook (void) { - octave_link::entered_readline_hook (); - octave_link::generate_events (); octave_link::process_events (); - octave_link::finished_readline_hook (); return 0; } @@ -91,10 +88,6 @@ } void -octave_link::do_generate_events (void) -{ } - -void octave_link::do_process_events (void) { event_queue_mutex->lock ();
--- a/libinterp/corefcn/octave-link.h Wed Jul 17 21:52:46 2019 +0200 +++ b/libinterp/corefcn/octave-link.h Thu Jul 18 00:08:07 2019 -0400 @@ -68,12 +68,6 @@ virtual ~octave_link (void); - static void generate_events (void) - { - if (enabled ()) - instance->do_generate_events (); - } - // If disable is TRUE, then no additional events will be processed // other than exit. @@ -127,18 +121,6 @@ instance->do_post_exception (p); } - static void entered_readline_hook (void) - { - if (enabled ()) - instance->do_entered_readline_hook (); - } - - static void finished_readline_hook (void) - { - if (enabled ()) - instance->do_finished_readline_hook (); - } - static bool copy_image_to_clipboard (const std::string& file) { @@ -469,7 +451,6 @@ bool debugging; bool link_enabled; - void do_generate_events (void); void do_process_events (void); void do_discard_events (void);