Commit 120f0306 authored by Orgad Shaneh's avatar Orgad Shaneh

Git: Remove unused functions

Change-Id: I6cb9752f435255379cf7a8a321b3192a410d91df
Reviewed-by: default avatarTobias Hunger <>
parent 177f7740
......@@ -778,14 +778,6 @@ void GitClient::blame(const QString &workingDirectory,
executeGit(workingDirectory, arguments, editor, false, VcsBase::Command::NoReport, lineNumber);
void GitClient::checkoutBranch(const QString &workingDirectory, const QString &branch)
QStringList arguments(QLatin1String("checkout"));
arguments << branch;
VcsBase::Command *cmd = executeGit(workingDirectory, arguments, 0, true);
connectRepositoryChanged(workingDirectory, cmd);
bool GitClient::synchronousCheckoutBranch(const QString &workingDirectory,
const QString &branch,
QString *errorMessage /* = 0 */)
......@@ -810,20 +802,6 @@ bool GitClient::synchronousCheckoutBranch(const QString &workingDirectory,
return true;
void GitClient::checkout(const QString &workingDirectory, const QString &fileName)
// Passing an empty argument as the file name is very dangereous, since this makes
// git checkout apply to all files. Almost looks like a bug in git.
if (fileName.isEmpty())
QStringList arguments;
arguments << QLatin1String("checkout") << QLatin1String("HEAD") << QLatin1String("--")
<< fileName;
executeGit(workingDirectory, arguments, 0, true);
void GitClient::hardReset(const QString &workingDirectory, const QString &commit)
QStringList arguments;
......@@ -129,8 +129,6 @@ public:
bool enableAnnotationContextMenu = false, const QStringList &args = QStringList());
void blame(const QString &workingDirectory, const QStringList &args, const QString &fileName,
const QString &revision = QString(), int lineNumber = -1);
void checkout(const QString &workingDirectory, const QString &file);
void checkoutBranch(const QString &workingDirectory, const QString &branch);
void hardReset(const QString &workingDirectory, const QString &commit = QString());
void softReset(const QString &workingDirectory, const QString &commit);
void addFile(const QString &workingDirectory, const QString &fileName);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment