Git: Remove unused default value

Change-Id: I2e9354cc675281a5025706d023e92d43c81910f6
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2012-10-28 21:28:56 +02:00
committed by Orgad Shaneh
parent b45393461a
commit 0f2f2a59d2
2 changed files with 2 additions and 2 deletions

View File

@@ -175,7 +175,7 @@ QStringList CommitData::filterFiles(const CommitData::FileState &state) const
{
QStringList result;
foreach (const StateFilePair &p, files) {
if (state == AllStates || state == p.first)
if (state == p.first)
result.append(p.second);
}
return result;

View File

@@ -99,7 +99,7 @@ public:
// Convenience to retrieve the file names from
// the specification list. Optionally filter for a certain state
QStringList filterFiles(const FileState &state = AllStates) const;
QStringList filterFiles(const FileState &state) const;
static QString stateDisplayName(const FileState &state);