Timewise delete code

• Feb 27, 2011 - 22:13
Type
Functional
Severity
S5 - Suggestion
Status
needs info
Regression
No
Workaround
No
Project

In actions.cpp the command for "Timewise delete" still exists. Is it safe to assume that this code can be deleted (since versions 0.9.6 and later use a the Delete Selected Measures command instead)?

from actions.cpp, lines 990-1007:

      Shortcut(
         STATE_NORMAL,
         "time-delete",
         QT_TRANSLATE_NOOP("action","Timewise delete"),
         0, // Qt::CTRL + Qt::Key_Delete,
         Qt::WindowShortcut,
         QT_TRANSLATE_NOOP("action","Timewise Delete"),
         QT_TRANSLATE_NOOP("action","Delete element and duration")
         ),
      Shortcut(
         STATE_NORMAL,
         "delete-measures",
         QT_TRANSLATE_NOOP("action","Delete selected measures"),
         Qt::CTRL + Qt::Key_Delete,
         Qt::WindowShortcut,
         QT_TRANSLATE_NOOP("action","Delete Selected Measures"),
         QT_TRANSLATE_NOOP("action","Delete selected measures")
         ),

and from cmd.cpp, lines 2041-2048:

                  cmdDeleteSelection();
            else if (cmd == "delete-measures")
                  cmdDeleteSelectedMeasures();
            else if (cmd == "time-delete") {
                  // TODO:
                  // remove measures if stave-range is 0-nstaves()
                  cmdDeleteSelectedMeasures();
                  }

Comments