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:
hjk
2018-02-09 14:29:28 +01:00
parent e5a3a8d189
commit 7cf1ba2855
2 changed files with 0 additions and 6 deletions

View File

@@ -50,11 +50,6 @@ RemoteLinuxRunConfigurationFactory::RemoteLinuxRunConfigurationFactory(QObject *
setSupportedTargetDeviceTypes({RemoteLinux::Constants::GenericLinuxOsType});
}
bool RemoteLinuxRunConfigurationFactory::canCreateHelper(Target *parent, const QString &buildTarget) const
{
return parent->applicationTargets().hasTarget(buildTarget);
}
QList<RunConfigurationCreationInfo>
RemoteLinuxRunConfigurationFactory::availableCreators(Target *parent, CreationMode mode) const
{

View File

@@ -37,7 +37,6 @@ class RemoteLinuxRunConfigurationFactory : public ProjectExplorer::IRunConfigura
public:
explicit RemoteLinuxRunConfigurationFactory(QObject *parent = nullptr);
bool canCreateHelper(ProjectExplorer::Target *parent, const QString &suffix) const override;
QList<ProjectExplorer::RunConfigurationCreationInfo>
availableCreators(ProjectExplorer::Target *parent, CreationMode mode) const override;
};