# HG changeset patch # User Torsten Lilge # Date 1591130827 -7200 # Node ID 287ffa8cfeaeb11ae5dbde73456b2dd5be54ba3c # Parent 37c5532e558c97e04e63764c925a7957f8540d5b remove obsolete code from variable editor * variable-editor.cc/h (add_action): removed method, which is not used diff -r 37c5532e558c -r 287ffa8cfeae libgui/src/variable-editor.cc --- a/libgui/src/variable-editor.cc Tue Jun 02 20:02:39 2020 +0200 +++ b/libgui/src/variable-editor.cc Tue Jun 02 22:47:07 2020 +0200 @@ -1123,29 +1123,6 @@ } } - // Add an action to a menu or the widget itself. - - QAction* - variable_editor::add_action (QMenu *menu, const QIcon& icon, - const QString& text, - const char *member) - { - QAction *a; - - if (menu) - a = menu->addAction (icon, text, this, member); - else - { - a = new QAction (this); - connect (a, SIGNAL (triggered ()), this, member); - } - - addAction (a); // important for shortcut context - a->setShortcutContext (Qt::WidgetWithChildrenShortcut); - - return a; - } - void variable_editor::edit_variable (const QString& name, const octave_value& val) { diff -r 37c5532e558c -r 287ffa8cfeae libgui/src/variable-editor.h --- a/libgui/src/variable-editor.h Tue Jun 02 20:02:39 2020 +0200 +++ b/libgui/src/variable-editor.h Tue Jun 02 22:47:07 2020 +0200 @@ -351,9 +351,6 @@ private: - QAction * add_action (QMenu *menu, const QIcon& icon, const QString& text, - const char *member); - dw_main_window *m_main; QToolBar *m_tool_bar;