GenericProject: Simnplfy code handling includes

Change-Id: I42ee45920907d3d55a3adf77901b37fbf45bb70b
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Daniel Teske
2013-10-22 16:38:28 +02:00
parent f18eb67276
commit 26b989b0ce
2 changed files with 1 additions and 24 deletions

View File

@@ -254,7 +254,7 @@ void GenericProject::refresh(RefreshOptions options)
part->displayName = displayName();
part->projectFile = projectFilePath();
part->includePaths += allIncludePaths();
part->includePaths += projectIncludePaths();
Kit *k = activeTarget() ? activeTarget()->kit() : KitManager::defaultKit();
if (ToolChain *tc = ToolChainKitInformation::toolChain(k)) {
@@ -337,15 +337,6 @@ QStringList GenericProject::processEntries(const QStringList &paths,
return absolutePaths;
}
QStringList GenericProject::allIncludePaths() const
{
QStringList paths;
paths += m_includePaths;
paths += m_projectIncludePaths;
paths.removeDuplicates();
return paths;
}
QStringList GenericProject::projectIncludePaths() const
{
return m_projectIncludePaths;
@@ -356,16 +347,6 @@ QStringList GenericProject::files() const
return m_files;
}
QStringList GenericProject::includePaths() const
{
return m_includePaths;
}
void GenericProject::setIncludePaths(const QStringList &includePaths)
{
m_includePaths = includePaths;
}
QByteArray GenericProject::defines() const
{
return m_defines;
@@ -430,8 +411,6 @@ bool GenericProject::fromMap(const QVariantMap &map)
t->addRunConfiguration(new QtSupport::CustomExecutableRunConfiguration(t));
}
setIncludePaths(allIncludePaths());
refresh(Everything);
return true;
}