forked from qt-creator/qt-creator
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user