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:
Jarek Kobus
2024-01-15 22:11:46 +01:00
parent d5d08c2e53
commit b855b1f907
3 changed files with 8 additions and 8 deletions

View File

@@ -307,8 +307,8 @@ void MercurialClient::commit(const FilePath &repositoryRoot, const QStringList &
VcsBaseClient::commit(repositoryRoot, files, commitMessageFile, args);
}
void MercurialClient::diff(const FilePath &workingDir, const QStringList &files,
const QStringList &extraOptions)
void MercurialClient::showDiffEditor(const FilePath &workingDir, const QStringList &files,
const QStringList &extraOptions)
{
Q_UNUSED(extraOptions)

View File

@@ -45,8 +45,8 @@ public:
void commit(const Utils::FilePath &repositoryRoot, const QStringList &files,
const QString &commitMessageFile,
const QStringList &extraOptions = QStringList()) override;
void diff(const Utils::FilePath &workingDir, const QStringList &files = {},
const QStringList &extraOptions = {}) override;
void showDiffEditor(const Utils::FilePath &workingDir, const QStringList &files = {},
const QStringList &extraOptions = {});
void import(const Utils::FilePath &repositoryRoot, const QStringList &files,
const QStringList &extraOptions = {}) override;
void revertAll(const Utils::FilePath &workingDir, const QString &revision = {},

View File

@@ -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()