# HG changeset patch # User John W. Eaton # Date 1365054657 14400 # Node ID 8ff9006cedc33ac93214244c62536f2c094638a6 # Parent ad052cdc89ad4088b358741b0840dc57349105c7 delete unused functions and signal for updating dbstop marker * main-window.h, main-window.cc (main_window::handle_update_dbstop_marker_request): Delete. (main_window::construct): Delete signal connection from _octave_qt_event_listener::update_dbstop_marker_signal to main_window::handle_update_dbstop_marker_request. * octave-qt-event-listener.h, octave-qt-event-listener.cc (octave_qt_event_listener::update_dbstop_marker): Delete. (octave_qt_event_listener::update_dbstop_marker_signal): Delete signal. * octave-event-listener (octave_event_listener::update_dbstop_marker): Delete. diff -r ad052cdc89ad -r 8ff9006cedc3 libgui/src/main-window.cc --- a/libgui/src/main-window.cc Thu Apr 04 01:43:18 2013 -0400 +++ b/libgui/src/main-window.cc Thu Apr 04 01:50:57 2013 -0400 @@ -511,15 +511,6 @@ } void -main_window::handle_update_dbstop_marker_request (bool insert, - const QString& file, int line) -{ -#ifdef HAVE_QSCINTILLA - _file_editor->handle_update_dbstop_marker_request (insert, file, line); -#endif -} - -void main_window::debug_continue () { octave_link::post_event (this, &main_window::debug_continue_callback); @@ -1192,11 +1183,6 @@ SIGNAL (delete_debugger_pointer_signal (const QString&, int)), this, SLOT (handle_delete_debugger_pointer_request (const QString&, int))); - connect (_octave_qt_event_listener, - SIGNAL (update_dbstop_marker_signal (bool, const QString&, int)), - this, - SLOT (handle_update_dbstop_marker_request (bool, const QString&, int))); - // FIXME -- is it possible to eliminate the event_listenter? _octave_qt_link = new octave_qt_link (); diff -r ad052cdc89ad -r 8ff9006cedc3 libgui/src/main-window.h --- a/libgui/src/main-window.h Thu Apr 04 01:43:18 2013 -0400 +++ b/libgui/src/main-window.h Thu Apr 04 01:50:57 2013 -0400 @@ -110,7 +110,6 @@ void handle_quit_debug_mode (); void handle_insert_debugger_pointer_request (const QString& file, int line); void handle_delete_debugger_pointer_request (const QString& file, int line); - void handle_update_dbstop_marker_request (bool insert, const QString& file, int line); void debug_continue (); void debug_step_into (); void debug_step_over (); diff -r ad052cdc89ad -r 8ff9006cedc3 libgui/src/octave-qt-event-listener.cc --- a/libgui/src/octave-qt-event-listener.cc Thu Apr 04 01:43:18 2013 -0400 +++ b/libgui/src/octave-qt-event-listener.cc Thu Apr 04 01:50:57 2013 -0400 @@ -68,15 +68,6 @@ } void -octave_qt_event_listener::update_dbstop_marker (bool insert, - const std::string& file, - int line) -{ - emit update_dbstop_marker_signal (insert, QString::fromStdString (file), - line); -} - -void octave_qt_event_listener::about_to_exit () { qApp->quit (); diff -r ad052cdc89ad -r 8ff9006cedc3 libgui/src/octave-qt-event-listener.h --- a/libgui/src/octave-qt-event-listener.h Thu Apr 04 01:43:18 2013 -0400 +++ b/libgui/src/octave-qt-event-listener.h Thu Apr 04 01:50:57 2013 -0400 @@ -39,7 +39,6 @@ void update_history (void); void insert_debugger_pointer (const std::string& file, int line); void delete_debugger_pointer (const std::string& file, int line); - void update_dbstop_marker (bool insert, const std::string& file, int line); void about_to_exit (); void entered_debug_mode (); @@ -51,7 +50,6 @@ void update_history_signal (void); void insert_debugger_pointer_signal (const QString& file, int line); void delete_debugger_pointer_signal (const QString& file, int line); - void update_dbstop_marker_signal (bool insert, const QString& file, int line); void entered_debug_mode_signal (); void quit_debug_mode_signal (); }; diff -r ad052cdc89ad -r 8ff9006cedc3 libinterp/interp-core/octave-event-listener.h --- a/libinterp/interp-core/octave-event-listener.h Thu Apr 04 01:43:18 2013 -0400 +++ b/libinterp/interp-core/octave-event-listener.h Thu Apr 04 01:50:57 2013 -0400 @@ -46,9 +46,6 @@ virtual void delete_debugger_pointer (const std::string& file, int line) = 0; - virtual void - update_dbstop_marker (bool insert, const std::string& file, int line) = 0; - virtual void about_to_exit () = 0; virtual void entered_debug_mode () = 0;