Git: Remove description from PanelInfo

It is not used anywhere

Change-Id: I9884c4c015bc14cb78e35950c7544c8d004a73ca
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2012-11-29 23:12:02 +02:00
committed by Orgad Shaneh
parent 25981d918e
commit 1712b86e0e
3 changed files with 1 additions and 13 deletions

View File

@@ -40,14 +40,12 @@ namespace Internal {
void GitSubmitEditorPanelInfo::clear()
{
repository.clear();
description.clear();
branch.clear();
}
QDebug operator<<(QDebug d, const GitSubmitEditorPanelInfo &data)
{
d.nospace() << "Rep: " << data.repository << " Descr: " << data.description
<< " branch: " << data.branch;
d.nospace() << "Rep: " << data.repository << " branch: " << data.branch;
return d;
}

View File

@@ -45,7 +45,6 @@ struct GitSubmitEditorPanelInfo
{
void clear();
QString repository;
QString description;
QString branch;
};

View File

@@ -1779,15 +1779,6 @@ bool GitClient::getCommitData(const QString &workingDirectory,
return false;
}
// Read description
const QString descriptionFile = QDir(gitDir).absoluteFilePath(QLatin1String("description"));
if (QFileInfo(descriptionFile).isFile()) {
Utils::FileReader reader;
if (!reader.fetch(descriptionFile, QIODevice::Text, errorMessage))
return false;
commitData->panelInfo.description = commandOutputFromLocal8Bit(reader.data()).trimmed();
}
// Run status. Note that it has exitcode 1 if there are no added files.
QString output;
const StatusResult status = gitStatus(repoDirectory, true, &output, errorMessage);