Commit ba315fa7 authored by Daniel Teske's avatar Daniel Teske

IRunControlFactory::displayName: Remove unused function

It's never used.

Change-Id: I11cc85b1d9a5944017b8a03738877f91cfe5d11f
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent cb857b47
......@@ -48,11 +48,6 @@ AnalyzerRunControlFactory::AnalyzerRunControlFactory(QObject *parent) :
{
}
QString AnalyzerRunControlFactory::displayName() const
{
return tr("Analyzer");
}
bool AnalyzerRunControlFactory::canRun(RunConfiguration *runConfiguration, RunMode mode) const
{
IAnalyzerTool *tool = AnalyzerManager::toolFromRunMode(mode);
......
......@@ -44,7 +44,6 @@ public:
explicit AnalyzerRunControlFactory(QObject *parent = 0);
// IRunControlFactory implementation
QString displayName() const;
bool canRun(RunConfiguration *runConfiguration, ProjectExplorer::RunMode mode) const;
ProjectExplorer::RunControl *create(RunConfiguration *runConfiguration,
ProjectExplorer::RunMode mode,
......
......@@ -167,10 +167,5 @@ RunControl *AndroidRunControlFactory::create(RunConfiguration *runConfig,
return AndroidDebugSupport::createDebugRunControl(rc, errorMessage);
}
QString AndroidRunControlFactory::displayName() const
{
return tr("Run on Android device or emulator.");
}
} // namespace Internal
} // namespace Qt4ProjectManager
......@@ -78,8 +78,6 @@ class AndroidRunControlFactory : public ProjectExplorer::IRunControlFactory
public:
explicit AndroidRunControlFactory(QObject *parent = 0);
QString displayName() const;
bool canRun(ProjectExplorer::RunConfiguration *runConfiguration,
ProjectExplorer::RunMode mode) const;
ProjectExplorer::RunControl *create(ProjectExplorer::RunConfiguration *runConfiguration,
......
......@@ -68,9 +68,6 @@ public:
ProjectExplorer::IRunConfigurationAspect *createRunConfigurationAspect(
ProjectExplorer::RunConfiguration *rc);
private:
QString displayName() const;
};
} // namespace Internal
......
......@@ -325,11 +325,6 @@ bool DebuggerRunControlFactory::canRun(RunConfiguration *runConfiguration, RunMo
&& qobject_cast<LocalApplicationRunConfiguration *>(runConfiguration);
}
QString DebuggerRunControlFactory::displayName() const
{
return DebuggerPlugin::tr("Debug");
}
static DebuggerStartParameters localStartParameters(RunConfiguration *runConfiguration, QString *errorMessage)
{
DebuggerStartParameters sp;
......
......@@ -239,10 +239,5 @@ RunControl* MaemoRunControlFactory::create(RunConfiguration *runConfig, RunMode
QTC_ASSERT(false, return 0);
}
QString MaemoRunControlFactory::displayName() const
{
return tr("Run on device");
}
} // namespace Internal
} // namespace Madde
......@@ -82,8 +82,6 @@ public:
explicit MaemoRunControlFactory(QObject *parent = 0);
~MaemoRunControlFactory();
QString displayName() const;
bool canRun(ProjectExplorer::RunConfiguration *runConfiguration, ProjectExplorer::RunMode mode) const;
RunControl *create(ProjectExplorer::RunConfiguration *runConfiguration,
ProjectExplorer::RunMode mode,
......
......@@ -53,11 +53,6 @@ bool LocalApplicationRunControlFactory::canRun(RunConfiguration *runConfiguratio
return mode == NormalRunMode && qobject_cast<LocalApplicationRunConfiguration *>(runConfiguration);
}
QString LocalApplicationRunControlFactory::displayName() const
{
return tr("Run");
}
RunControl *LocalApplicationRunControlFactory::create(RunConfiguration *runConfiguration, RunMode mode, QString *errorMessage)
{
QTC_ASSERT(canRun(runConfiguration, mode), return 0);
......
......@@ -45,7 +45,6 @@ public:
LocalApplicationRunControlFactory ();
virtual ~LocalApplicationRunControlFactory();
virtual bool canRun(RunConfiguration *runConfiguration, RunMode mode) const;
virtual QString displayName() const;
virtual RunControl* create(RunConfiguration *runConfiguration, RunMode mode, QString *errorMessage);
};
......
......@@ -186,8 +186,6 @@ public:
virtual bool canRun(RunConfiguration *runConfiguration, RunMode mode) const = 0;
virtual RunControl *create(RunConfiguration *runConfiguration, RunMode mode, QString *errorMessage) = 0;
virtual QString displayName() const = 0;
virtual IRunConfigurationAspect *createRunConfigurationAspect(RunConfiguration *rc);
};
......
......@@ -192,11 +192,6 @@ RunControl *QmlProjectRunControlFactory::create(RunConfiguration *runConfigurati
return runControl;
}
QString QmlProjectRunControlFactory::displayName() const
{
return tr("Run");
}
RunControl *QmlProjectRunControlFactory::createDebugRunControl(QmlProjectRunConfiguration *runConfig, QString *errorMessage)
{
Debugger::DebuggerStartParameters params;
......
......@@ -78,8 +78,6 @@ public:
virtual bool canRun(ProjectExplorer::RunConfiguration *runConfiguration, ProjectExplorer::RunMode mode) const;
virtual ProjectExplorer::RunControl *create(ProjectExplorer::RunConfiguration *runConfiguration,
ProjectExplorer::RunMode mode, QString *errorMessage);
virtual QString displayName() const;
private:
ProjectExplorer::RunControl *createDebugRunControl(QmlProjectRunConfiguration *runConfig, QString *errorMessage);
};
......
......@@ -125,11 +125,6 @@ ProjectExplorer::RunControl *BlackBerryRunControlFactory::create(ProjectExplorer
return runControl;
}
QString BlackBerryRunControlFactory::displayName() const
{
return tr("Run on BlackBerry Device");
}
Debugger::DebuggerStartParameters BlackBerryRunControlFactory::startParameters(
const BlackBerryRunConfiguration *runConfig)
{
......
......@@ -58,8 +58,6 @@ public:
ProjectExplorer::RunMode mode,
QString *errorMessage);
QString displayName() const;
private:
static Debugger::DebuggerStartParameters startParameters( const BlackBerryRunConfiguration *runConfig);
......
......@@ -154,8 +154,3 @@ RunControl *QnxRunControlFactory::create(RunConfiguration *runConfig, RunMode mo
return runControl;
}
QString QnxRunControlFactory::displayName() const
{
return tr("Run on remote QNX device");
}
......@@ -44,8 +44,6 @@ class QnxRunControlFactory : public ProjectExplorer::IRunControlFactory
public:
explicit QnxRunControlFactory(QObject *parent = 0);
QString displayName() const;
bool canRun(ProjectExplorer::RunConfiguration *runConfiguration,
ProjectExplorer::RunMode mode) const;
ProjectExplorer::RunControl *create(ProjectExplorer::RunConfiguration *runConfiguration,
......
......@@ -108,10 +108,5 @@ RunControl *RemoteLinuxRunControlFactory::create(RunConfiguration *runConfig, Ru
QTC_ASSERT(false, return 0);
}
QString RemoteLinuxRunControlFactory::displayName() const
{
return tr("Run on remote Linux device");
}
} // namespace Internal
} // namespace RemoteLinux
......@@ -41,8 +41,6 @@ public:
explicit RemoteLinuxRunControlFactory(QObject *parent = 0);
~RemoteLinuxRunControlFactory();
QString displayName() const;
bool canRun(ProjectExplorer::RunConfiguration *runConfiguration,
ProjectExplorer::RunMode mode) const;
ProjectExplorer::RunControl *create(ProjectExplorer::RunConfiguration *runConfiguration,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment