forked from qt-creator/qt-creator
VCS: Remove dead stores
Change-Id: I998e523c76bdc0b76cbc6089092a0dda4812ca16 Reviewed-by: Nikita Baryshnikov <nib952051@gmail.com> Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
Orgad Shaneh
parent
7db238c116
commit
9a1c382273
@@ -537,13 +537,13 @@ void BazaarPlugin::createSubmitEditorActions()
|
||||
connect(m_editorCommit, &QAction::triggered, this, &BazaarPlugin::commitFromEditor);
|
||||
|
||||
m_editorDiff = new QAction(VcsBaseSubmitEditor::diffIcon(), tr("Diff &Selected Files"), this);
|
||||
command = ActionManager::registerAction(m_editorDiff, DIFFEDITOR, context);
|
||||
ActionManager::registerAction(m_editorDiff, DIFFEDITOR, context);
|
||||
|
||||
m_editorUndo = new QAction(tr("&Undo"), this);
|
||||
command = ActionManager::registerAction(m_editorUndo, Core::Constants::UNDO, context);
|
||||
ActionManager::registerAction(m_editorUndo, Core::Constants::UNDO, context);
|
||||
|
||||
m_editorRedo = new QAction(tr("&Redo"), this);
|
||||
command = ActionManager::registerAction(m_editorRedo, Core::Constants::REDO, context);
|
||||
ActionManager::registerAction(m_editorRedo, Core::Constants::REDO, context);
|
||||
}
|
||||
|
||||
void BazaarPlugin::commit()
|
||||
|
@@ -642,13 +642,13 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
connect(m_submitCurrentAction, SIGNAL(triggered()), this, SLOT(submitCurrentLog()));
|
||||
|
||||
m_diffSelectedFilesAction = new QAction(VcsBaseSubmitEditor::diffIcon(), tr("Diff &Selected Files"), this);
|
||||
command = ActionManager::registerAction(m_diffSelectedFilesAction, Constants::DIFF_SELECTED, submitContext);
|
||||
ActionManager::registerAction(m_diffSelectedFilesAction, Constants::DIFF_SELECTED, submitContext);
|
||||
|
||||
m_undoAction = new QAction(tr("&Undo"), this);
|
||||
command = ActionManager::registerAction(m_undoAction, Core::Constants::UNDO, submitContext);
|
||||
ActionManager::registerAction(m_undoAction, Core::Constants::UNDO, submitContext);
|
||||
|
||||
m_redoAction = new QAction(tr("&Redo"), this);
|
||||
command = ActionManager::registerAction(m_redoAction, Core::Constants::REDO, submitContext);
|
||||
ActionManager::registerAction(m_redoAction, Core::Constants::REDO, submitContext);
|
||||
|
||||
connect(VcsManager::instance(), SIGNAL(repositoryChanged(QString)),
|
||||
this, SLOT(updateContinueAndAbortCommands()));
|
||||
|
@@ -522,13 +522,13 @@ void MercurialPlugin::createSubmitEditorActions()
|
||||
connect(editorCommit, SIGNAL(triggered()), this, SLOT(commitFromEditor()));
|
||||
|
||||
editorDiff = new QAction(VcsBaseSubmitEditor::diffIcon(), tr("Diff &Selected Files"), this);
|
||||
command = Core::ActionManager::registerAction(editorDiff, Core::Id(Constants::DIFFEDITOR), context);
|
||||
Core::ActionManager::registerAction(editorDiff, Core::Id(Constants::DIFFEDITOR), context);
|
||||
|
||||
editorUndo = new QAction(tr("&Undo"), this);
|
||||
command = Core::ActionManager::registerAction(editorUndo, Core::Id(Core::Constants::UNDO), context);
|
||||
Core::ActionManager::registerAction(editorUndo, Core::Id(Core::Constants::UNDO), context);
|
||||
|
||||
editorRedo = new QAction(tr("&Redo"), this);
|
||||
command = Core::ActionManager::registerAction(editorRedo, Core::Id(Core::Constants::REDO), context);
|
||||
Core::ActionManager::registerAction(editorRedo, Core::Id(Core::Constants::REDO), context);
|
||||
}
|
||||
|
||||
void MercurialPlugin::commit()
|
||||
|
@@ -428,13 +428,13 @@ bool PerforcePlugin::initialize(const QStringList & /* arguments */, QString *er
|
||||
connect(m_submitCurrentLogAction, SIGNAL(triggered()), this, SLOT(submitCurrentLog()));
|
||||
|
||||
m_diffSelectedFiles = new QAction(VcsBaseSubmitEditor::diffIcon(), tr("Diff &Selected Files"), this);
|
||||
command = ActionManager::registerAction(m_diffSelectedFiles, DIFF_SELECTED, perforcesubmitcontext);
|
||||
ActionManager::registerAction(m_diffSelectedFiles, DIFF_SELECTED, perforcesubmitcontext);
|
||||
|
||||
m_undoAction = new QAction(tr("&Undo"), this);
|
||||
command = ActionManager::registerAction(m_undoAction, Core::Constants::UNDO, perforcesubmitcontext);
|
||||
ActionManager::registerAction(m_undoAction, Core::Constants::UNDO, perforcesubmitcontext);
|
||||
|
||||
m_redoAction = new QAction(tr("&Redo"), this);
|
||||
command = ActionManager::registerAction(m_redoAction, Core::Constants::REDO, perforcesubmitcontext);
|
||||
ActionManager::registerAction(m_redoAction, Core::Constants::REDO, perforcesubmitcontext);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@@ -440,13 +440,13 @@ bool SubversionPlugin::initialize(const QStringList & /*arguments */, QString *e
|
||||
connect(m_submitCurrentLogAction, SIGNAL(triggered()), this, SLOT(submitCurrentLog()));
|
||||
|
||||
m_submitDiffAction = new QAction(VcsBaseSubmitEditor::diffIcon(), tr("Diff &Selected Files"), this);
|
||||
command = ActionManager::registerAction(m_submitDiffAction , DIFF_SELECTED, svncommitcontext);
|
||||
ActionManager::registerAction(m_submitDiffAction , DIFF_SELECTED, svncommitcontext);
|
||||
|
||||
m_submitUndoAction = new QAction(tr("&Undo"), this);
|
||||
command = ActionManager::registerAction(m_submitUndoAction, Core::Constants::UNDO, svncommitcontext);
|
||||
ActionManager::registerAction(m_submitUndoAction, Core::Constants::UNDO, svncommitcontext);
|
||||
|
||||
m_submitRedoAction = new QAction(tr("&Redo"), this);
|
||||
command = ActionManager::registerAction(m_submitRedoAction, Core::Constants::REDO, svncommitcontext);
|
||||
ActionManager::registerAction(m_submitRedoAction, Core::Constants::REDO, svncommitcontext);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user