Remove BuildConfiguration parameter from RunConfiguration::isEnabled

Noone used it anyway, makes the code easier to refactor later.

Change-Id: I367c3f15ec5034740760dfe1becd3063b2e19dc1
Reviewed-on: http://codereview.qt.nokia.com/187
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
dt_
2011-05-26 15:33:24 +02:00
committed by Daniel Teske
parent f118242aaa
commit fc90ea3c10
15 changed files with 20 additions and 60 deletions

View File

@@ -198,13 +198,11 @@ void RunConfiguration::addExtraAspects()
}
/*!
\brief Used to find out whether a runconfiguration works with the given buildconfiguration.
\note bc may be 0!
\brief Used to find out whether a runconfiguration is enabled
*/
bool RunConfiguration::isEnabled(BuildConfiguration *bc) const
bool RunConfiguration::isEnabled() const
{
Q_UNUSED(bc);
return true;
}
@@ -214,18 +212,6 @@ bool RunConfiguration::isEnabled(BuildConfiguration *bc) const
\brief Returns the widget used to configure this run configuration. Ownership is transferred to the caller
*/
/*!
\brief Used to find out whether a runconfiguration works with the active buildconfiguration.
*/
bool RunConfiguration::isEnabled() const
{
if (target()->project()->hasActiveBuildSettings()
&& !activeBuildConfiguration())
return false;
return isEnabled(activeBuildConfiguration());
}
BuildConfiguration *RunConfiguration::activeBuildConfiguration() const
{
if (!target())