forked from qt-creator/qt-creator
Mercurial: Get rid of a fake overload
The only callers are coming from the Mercurial plugin. The overload doesn't call the base implementation. So, there is no relation to the base impl. Change-Id: I718e3ab196e9df77f6682b3230a8739db58c0238 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -339,14 +339,14 @@ void MercurialPluginPrivate::diffCurrentFile()
|
||||
{
|
||||
const VcsBasePluginState state = currentState();
|
||||
QTC_ASSERT(state.hasFile(), return);
|
||||
m_client.diff(state.currentFileTopLevel(), QStringList(state.relativeCurrentFile()));
|
||||
m_client.showDiffEditor(state.currentFileTopLevel(), {state.relativeCurrentFile()});
|
||||
}
|
||||
|
||||
void MercurialPluginPrivate::logCurrentFile()
|
||||
{
|
||||
const VcsBasePluginState state = currentState();
|
||||
QTC_ASSERT(state.hasFile(), return);
|
||||
m_client.log(state.currentFileTopLevel(), QStringList(state.relativeCurrentFile()), {}, true);
|
||||
m_client.log(state.currentFileTopLevel(), {state.relativeCurrentFile()}, {}, true);
|
||||
}
|
||||
|
||||
void MercurialPluginPrivate::revertCurrentFile()
|
||||
@@ -402,7 +402,7 @@ void MercurialPluginPrivate::diffRepository()
|
||||
{
|
||||
const VcsBasePluginState state = currentState();
|
||||
QTC_ASSERT(state.hasTopLevel(), return);
|
||||
m_client.diff(state.topLevel());
|
||||
m_client.showDiffEditor(state.topLevel());
|
||||
}
|
||||
|
||||
void MercurialPluginPrivate::logRepository()
|
||||
@@ -621,7 +621,7 @@ void MercurialPluginPrivate::showCommitWidget(const QList<VcsBaseClient::StatusI
|
||||
|
||||
void MercurialPluginPrivate::diffFromEditorSelected(const QStringList &files)
|
||||
{
|
||||
m_client.diff(m_submitRepository, files);
|
||||
m_client.showDiffEditor(m_submitRepository, files);
|
||||
}
|
||||
|
||||
bool MercurialPluginPrivate::activateCommit()
|
||||
|
||||
Reference in New Issue
Block a user