summaryrefslogtreecommitdiff
path: root/src/lib/buildgraph/projectbuilddata.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2013-09-09 14:03:09 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2013-09-09 14:56:59 +0200
commit7b87337f402da091648a97414d0201c096411902 (patch)
treebfa0f7adcb94a12b656a9d44a46b92d724b02e18 /src/lib/buildgraph/projectbuilddata.cpp
parentff5b33b82b8ae27ba8851f8c9f618ab983e03f06 (diff)
downloadqbs-7b87337f402da091648a97414d0201c096411902.tar.gz
Remove redundant method parameter.
Presumably the author thought the function was static. Change-Id: I5637493c6694edb15349d6189b098990471585be Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/buildgraph/projectbuilddata.cpp')
-rw-r--r--src/lib/buildgraph/projectbuilddata.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/lib/buildgraph/projectbuilddata.cpp b/src/lib/buildgraph/projectbuilddata.cpp
index 927807d55..8a47e7d47 100644
--- a/src/lib/buildgraph/projectbuilddata.cpp
+++ b/src/lib/buildgraph/projectbuilddata.cpp
@@ -141,7 +141,7 @@ static void disconnectArtifact(Artifact *artifact, ProjectBuildData *projectBuil
disconnectArtifactParents(artifact, projectBuildData, logger);
}
-void ProjectBuildData::removeArtifact(Artifact *artifact, ProjectBuildData *projectBuildData,
+void ProjectBuildData::removeArtifact(Artifact *artifact,
const Logger &logger, bool removeFromDisk, bool removeFromProduct)
{
if (logger.traceEnabled())
@@ -154,16 +154,11 @@ void ProjectBuildData::removeArtifact(Artifact *artifact, ProjectBuildData *proj
artifact->product->buildData->artifacts.remove(artifact);
artifact->product->buildData->targetArtifacts.remove(artifact);
}
- disconnectArtifact(artifact, projectBuildData, logger);
- projectBuildData->artifactsThatMustGetNewTransformers -= artifact;
+ disconnectArtifact(artifact, this, logger);
+ artifactsThatMustGetNewTransformers -= artifact;
isDirty = true;
}
-void ProjectBuildData::removeArtifact(Artifact *artifact, const Logger &logger)
-{
- removeArtifact(artifact, artifact->product->topLevelProject()->buildData.data(), logger);
-}
-
void ProjectBuildData::updateNodesThatMustGetNewTransformer(const Logger &logger)
{
RulesEvaluationContext::Scope s(evaluationContext.data());