forked from qt-creator/qt-creator
QMakeProjectManager: Remove unused function
Change-Id: I47f598f5de364f8039de910894747b2d66ceba0e Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -342,31 +342,6 @@ Project::RestoreResult QmakeProject::fromMap(const QVariantMap &map, QString *er
|
|||||||
return RestoreResult::Ok;
|
return RestoreResult::Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// equalFileList compares two file lists ignoring
|
|
||||||
/// <configuration> without generating temporary lists
|
|
||||||
|
|
||||||
bool QmakeProject::equalFileList(const QStringList &a, const QStringList &b)
|
|
||||||
{
|
|
||||||
if (abs(a.length() - b.length()) > 1)
|
|
||||||
return false;
|
|
||||||
QStringList::const_iterator ait = a.constBegin();
|
|
||||||
QStringList::const_iterator bit = b.constBegin();
|
|
||||||
QStringList::const_iterator aend = a.constEnd();
|
|
||||||
QStringList::const_iterator bend = b.constEnd();
|
|
||||||
|
|
||||||
while (ait != aend && bit != bend) {
|
|
||||||
if (*ait == CppTools::CppModelManager::configurationFileName())
|
|
||||||
++ait;
|
|
||||||
else if (*bit == CppTools::CppModelManager::configurationFileName())
|
|
||||||
++bit;
|
|
||||||
else if (*ait == *bit)
|
|
||||||
++ait, ++bit;
|
|
||||||
else
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return (ait == aend && bit == bend);
|
|
||||||
}
|
|
||||||
|
|
||||||
void QmakeProject::updateCodeModels()
|
void QmakeProject::updateCodeModels()
|
||||||
{
|
{
|
||||||
if (debug)
|
if (debug)
|
||||||
|
|||||||
Reference in New Issue
Block a user