changeset 16642:e3a0ca9c8836

eliminate unimplemented New -> Variable menu item * main-window.h, main-window.cc (main_window::construct_new_menu): Remove new variable menu item. (main_window::handle_new_variable_request): Delete.
author John W. Eaton <jwe@octave.org>
date Sun, 12 May 2013 16:57:06 -0400
parents 64f9a3e301d3
children 4258750c76ed
files libgui/src/main-window.cc libgui/src/main-window.h
diffstat 2 files changed, 0 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/main-window.cc	Sun May 12 16:17:48 2013 -0400
+++ b/libgui/src/main-window.cc	Sun May 12 16:57:06 2013 -0400
@@ -215,13 +215,6 @@
 }
 
 void
-main_window::handle_new_variable_request (void)
-{
-  QMessageBox::about (this, tr ("New Variable"),
-                      tr ("The new variable action is not implemented."));
-}
-
-void
 main_window::open_online_documentation_page (void)
 {
   QDesktopServices::openUrl (QUrl ("http://gnu.org/software/octave/doc/interpreter"));
@@ -1010,9 +1003,6 @@
   QAction *new_figure_action = new_menu->addAction (tr ("Figure"));
   new_figure_action->setEnabled (true);
 
-  QAction *new_variable_action = new_menu->addAction (tr ("Variable"));
-  new_variable_action->setEnabled (true);
-
   connect (_new_script_action, SIGNAL (triggered ()),
            editor_window, SLOT (request_new_script ()));
 
@@ -1021,9 +1011,6 @@
 
   connect (new_figure_action, SIGNAL (triggered ()),
            this, SLOT (handle_new_figure_request ()));
-
-  connect (new_variable_action, SIGNAL (triggered ()),
-           this, SLOT (handle_new_variable_request ()));
 }
 
 void
--- a/libgui/src/main-window.h	Sun May 12 16:17:48 2013 -0400
+++ b/libgui/src/main-window.h	Sun May 12 16:57:06 2013 -0400
@@ -120,8 +120,6 @@
 
   void handle_new_figure_request (void);
 
-  void handle_new_variable_request (void);
-
   void handle_enter_debugger (void);
   void handle_exit_debugger (void);
   void debug_continue (void);