forked from qt-creator/qt-creator
RemoteLinux: Remove RemoteLinuxRunConfigFactory::canCreateHelper()
It's only called from RunConfigurationFactory::create() in a context where the possible option are restricted to availableBuildTargets(), i.e. the check always succeeds, and that's what the base implementation does. Change-Id: Ie05abb64da9e9c765afc8a61d83095a709bc5c68 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -50,11 +50,6 @@ RemoteLinuxRunConfigurationFactory::RemoteLinuxRunConfigurationFactory(QObject *
|
|||||||
setSupportedTargetDeviceTypes({RemoteLinux::Constants::GenericLinuxOsType});
|
setSupportedTargetDeviceTypes({RemoteLinux::Constants::GenericLinuxOsType});
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RemoteLinuxRunConfigurationFactory::canCreateHelper(Target *parent, const QString &buildTarget) const
|
|
||||||
{
|
|
||||||
return parent->applicationTargets().hasTarget(buildTarget);
|
|
||||||
}
|
|
||||||
|
|
||||||
QList<RunConfigurationCreationInfo>
|
QList<RunConfigurationCreationInfo>
|
||||||
RemoteLinuxRunConfigurationFactory::availableCreators(Target *parent, CreationMode mode) const
|
RemoteLinuxRunConfigurationFactory::availableCreators(Target *parent, CreationMode mode) const
|
||||||
{
|
{
|
||||||
|
@@ -37,7 +37,6 @@ class RemoteLinuxRunConfigurationFactory : public ProjectExplorer::IRunConfigura
|
|||||||
public:
|
public:
|
||||||
explicit RemoteLinuxRunConfigurationFactory(QObject *parent = nullptr);
|
explicit RemoteLinuxRunConfigurationFactory(QObject *parent = nullptr);
|
||||||
|
|
||||||
bool canCreateHelper(ProjectExplorer::Target *parent, const QString &suffix) const override;
|
|
||||||
QList<ProjectExplorer::RunConfigurationCreationInfo>
|
QList<ProjectExplorer::RunConfigurationCreationInfo>
|
||||||
availableCreators(ProjectExplorer::Target *parent, CreationMode mode) const override;
|
availableCreators(ProjectExplorer::Target *parent, CreationMode mode) const override;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user