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) : ...@@ -48,11 +48,6 @@ AnalyzerRunControlFactory::AnalyzerRunControlFactory(QObject *parent) :
{ {
} }
QString AnalyzerRunControlFactory::displayName() const
{
return tr("Analyzer");
}
bool AnalyzerRunControlFactory::canRun(RunConfiguration *runConfiguration, RunMode mode) const bool AnalyzerRunControlFactory::canRun(RunConfiguration *runConfiguration, RunMode mode) const
{ {
IAnalyzerTool *tool = AnalyzerManager::toolFromRunMode(mode); IAnalyzerTool *tool = AnalyzerManager::toolFromRunMode(mode);
......
...@@ -44,7 +44,6 @@ public: ...@@ -44,7 +44,6 @@ public:
explicit AnalyzerRunControlFactory(QObject *parent = 0); explicit AnalyzerRunControlFactory(QObject *parent = 0);
// IRunControlFactory implementation // IRunControlFactory implementation
QString displayName() const;
bool canRun(RunConfiguration *runConfiguration, ProjectExplorer::RunMode mode) const; bool canRun(RunConfiguration *runConfiguration, ProjectExplorer::RunMode mode) const;
ProjectExplorer::RunControl *create(RunConfiguration *runConfiguration, ProjectExplorer::RunControl *create(RunConfiguration *runConfiguration,
ProjectExplorer::RunMode mode, ProjectExplorer::RunMode mode,
......
...@@ -167,10 +167,5 @@ RunControl *AndroidRunControlFactory::create(RunConfiguration *runConfig, ...@@ -167,10 +167,5 @@ RunControl *AndroidRunControlFactory::create(RunConfiguration *runConfig,
return AndroidDebugSupport::createDebugRunControl(rc, errorMessage); return AndroidDebugSupport::createDebugRunControl(rc, errorMessage);
} }
QString AndroidRunControlFactory::displayName() const
{
return tr("Run on Android device or emulator.");
}
} // namespace Internal } // namespace Internal
} // namespace Qt4ProjectManager } // namespace Qt4ProjectManager
...@@ -78,8 +78,6 @@ class AndroidRunControlFactory : public ProjectExplorer::IRunControlFactory ...@@ -78,8 +78,6 @@ class AndroidRunControlFactory : public ProjectExplorer::IRunControlFactory
public: public:
explicit AndroidRunControlFactory(QObject *parent = 0); explicit AndroidRunControlFactory(QObject *parent = 0);
QString displayName() const;
bool canRun(ProjectExplorer::RunConfiguration *runConfiguration, bool canRun(ProjectExplorer::RunConfiguration *runConfiguration,
ProjectExplorer::RunMode mode) const; ProjectExplorer::RunMode mode) const;
ProjectExplorer::RunControl *create(ProjectExplorer::RunConfiguration *runConfiguration, ProjectExplorer::RunControl *create(ProjectExplorer::RunConfiguration *runConfiguration,
......
...@@ -68,9 +68,6 @@ public: ...@@ -68,9 +68,6 @@ public:
ProjectExplorer::IRunConfigurationAspect *createRunConfigurationAspect( ProjectExplorer::IRunConfigurationAspect *createRunConfigurationAspect(
ProjectExplorer::RunConfiguration *rc); ProjectExplorer::RunConfiguration *rc);
private:
QString displayName() const;
}; };
} // namespace Internal } // namespace Internal
......
...@@ -325,11 +325,6 @@ bool DebuggerRunControlFactory::canRun(RunConfiguration *runConfiguration, RunMo ...@@ -325,11 +325,6 @@ bool DebuggerRunControlFactory::canRun(RunConfiguration *runConfiguration, RunMo
&& qobject_cast<LocalApplicationRunConfiguration *>(runConfiguration); && qobject_cast<LocalApplicationRunConfiguration *>(runConfiguration);
} }
QString DebuggerRunControlFactory::displayName() const
{
return DebuggerPlugin::tr("Debug");
}
static DebuggerStartParameters localStartParameters(RunConfiguration *runConfiguration, QString *errorMessage) static DebuggerStartParameters localStartParameters(RunConfiguration *runConfiguration, QString *errorMessage)
{ {
DebuggerStartParameters sp; DebuggerStartParameters sp;
......
...@@ -239,10 +239,5 @@ RunControl* MaemoRunControlFactory::create(RunConfiguration *runConfig, RunMode ...@@ -239,10 +239,5 @@ RunControl* MaemoRunControlFactory::create(RunConfiguration *runConfig, RunMode
QTC_ASSERT(false, return 0); QTC_ASSERT(false, return 0);
} }
QString MaemoRunControlFactory::displayName() const
{
return tr("Run on device");
}
} // namespace Internal } // namespace Internal
} // namespace Madde } // namespace Madde
...@@ -82,8 +82,6 @@ public: ...@@ -82,8 +82,6 @@ public:
explicit MaemoRunControlFactory(QObject *parent = 0); explicit MaemoRunControlFactory(QObject *parent = 0);
~MaemoRunControlFactory(); ~MaemoRunControlFactory();
QString displayName() const;
bool canRun(ProjectExplorer::RunConfiguration *runConfiguration, ProjectExplorer::RunMode mode) const; bool canRun(ProjectExplorer::RunConfiguration *runConfiguration, ProjectExplorer::RunMode mode) const;
RunControl *create(ProjectExplorer::RunConfiguration *runConfiguration, RunControl *create(ProjectExplorer::RunConfiguration *runConfiguration,
ProjectExplorer::RunMode mode, ProjectExplorer::RunMode mode,
......
...@@ -53,11 +53,6 @@ bool LocalApplicationRunControlFactory::canRun(RunConfiguration *runConfiguratio ...@@ -53,11 +53,6 @@ bool LocalApplicationRunControlFactory::canRun(RunConfiguration *runConfiguratio
return mode == NormalRunMode && qobject_cast<LocalApplicationRunConfiguration *>(runConfiguration); return mode == NormalRunMode && qobject_cast<LocalApplicationRunConfiguration *>(runConfiguration);
} }
QString LocalApplicationRunControlFactory::displayName() const
{
return tr("Run");
}
RunControl *LocalApplicationRunControlFactory::create(RunConfiguration *runConfiguration, RunMode mode, QString *errorMessage) RunControl *LocalApplicationRunControlFactory::create(RunConfiguration *runConfiguration, RunMode mode, QString *errorMessage)
{ {
QTC_ASSERT(canRun(runConfiguration, mode), return 0); QTC_ASSERT(canRun(runConfiguration, mode), return 0);
......
...@@ -45,7 +45,6 @@ public: ...@@ -45,7 +45,6 @@ public:
LocalApplicationRunControlFactory (); LocalApplicationRunControlFactory ();
virtual ~LocalApplicationRunControlFactory(); virtual ~LocalApplicationRunControlFactory();
virtual bool canRun(RunConfiguration *runConfiguration, RunMode mode) const; virtual bool canRun(RunConfiguration *runConfiguration, RunMode mode) const;
virtual QString displayName() const;
virtual RunControl* create(RunConfiguration *runConfiguration, RunMode mode, QString *errorMessage); virtual RunControl* create(RunConfiguration *runConfiguration, RunMode mode, QString *errorMessage);
}; };
......
...@@ -186,8 +186,6 @@ public: ...@@ -186,8 +186,6 @@ public:
virtual bool canRun(RunConfiguration *runConfiguration, RunMode mode) const = 0; virtual bool canRun(RunConfiguration *runConfiguration, RunMode mode) const = 0;
virtual RunControl *create(RunConfiguration *runConfiguration, RunMode mode, QString *errorMessage) = 0; virtual RunControl *create(RunConfiguration *runConfiguration, RunMode mode, QString *errorMessage) = 0;
virtual QString displayName() const = 0;
virtual IRunConfigurationAspect *createRunConfigurationAspect(RunConfiguration *rc); virtual IRunConfigurationAspect *createRunConfigurationAspect(RunConfiguration *rc);
}; };
......
...@@ -192,11 +192,6 @@ RunControl *QmlProjectRunControlFactory::create(RunConfiguration *runConfigurati ...@@ -192,11 +192,6 @@ RunControl *QmlProjectRunControlFactory::create(RunConfiguration *runConfigurati
return runControl; return runControl;
} }
QString QmlProjectRunControlFactory::displayName() const
{
return tr("Run");
}
RunControl *QmlProjectRunControlFactory::createDebugRunControl(QmlProjectRunConfiguration *runConfig, QString *errorMessage) RunControl *QmlProjectRunControlFactory::createDebugRunControl(QmlProjectRunConfiguration *runConfig, QString *errorMessage)
{ {
Debugger::DebuggerStartParameters params; Debugger::DebuggerStartParameters params;
......
...@@ -78,8 +78,6 @@ public: ...@@ -78,8 +78,6 @@ public:
virtual bool canRun(ProjectExplorer::RunConfiguration *runConfiguration, ProjectExplorer::RunMode mode) const; virtual bool canRun(ProjectExplorer::RunConfiguration *runConfiguration, ProjectExplorer::RunMode mode) const;
virtual ProjectExplorer::RunControl *create(ProjectExplorer::RunConfiguration *runConfiguration, virtual ProjectExplorer::RunControl *create(ProjectExplorer::RunConfiguration *runConfiguration,
ProjectExplorer::RunMode mode, QString *errorMessage); ProjectExplorer::RunMode mode, QString *errorMessage);
virtual QString displayName() const;
private: private:
ProjectExplorer::RunControl *createDebugRunControl(QmlProjectRunConfiguration *runConfig, QString *errorMessage); ProjectExplorer::RunControl *createDebugRunControl(QmlProjectRunConfiguration *runConfig, QString *errorMessage);
}; };
......
...@@ -125,11 +125,6 @@ ProjectExplorer::RunControl *BlackBerryRunControlFactory::create(ProjectExplorer ...@@ -125,11 +125,6 @@ ProjectExplorer::RunControl *BlackBerryRunControlFactory::create(ProjectExplorer
return runControl; return runControl;
} }
QString BlackBerryRunControlFactory::displayName() const
{
return tr("Run on BlackBerry Device");
}
Debugger::DebuggerStartParameters BlackBerryRunControlFactory::startParameters( Debugger::DebuggerStartParameters BlackBerryRunControlFactory::startParameters(
const BlackBerryRunConfiguration *runConfig) const BlackBerryRunConfiguration *runConfig)
{ {
......
...@@ -58,8 +58,6 @@ public: ...@@ -58,8 +58,6 @@ public:
ProjectExplorer::RunMode mode, ProjectExplorer::RunMode mode,
QString *errorMessage); QString *errorMessage);
QString displayName() const;
private: private:
static Debugger::DebuggerStartParameters startParameters( const BlackBerryRunConfiguration *runConfig); static Debugger::DebuggerStartParameters startParameters( const BlackBerryRunConfiguration *runConfig);
......
...@@ -154,8 +154,3 @@ RunControl *QnxRunControlFactory::create(RunConfiguration *runConfig, RunMode mo ...@@ -154,8 +154,3 @@ RunControl *QnxRunControlFactory::create(RunConfiguration *runConfig, RunMode mo
return runControl; return runControl;
} }
QString QnxRunControlFactory::displayName() const
{
return tr("Run on remote QNX device");
}
...@@ -44,8 +44,6 @@ class QnxRunControlFactory : public ProjectExplorer::IRunControlFactory ...@@ -44,8 +44,6 @@ class QnxRunControlFactory : public ProjectExplorer::IRunControlFactory
public: public:
explicit QnxRunControlFactory(QObject *parent = 0); explicit QnxRunControlFactory(QObject *parent = 0);
QString displayName() const;
bool canRun(ProjectExplorer::RunConfiguration *runConfiguration, bool canRun(ProjectExplorer::RunConfiguration *runConfiguration,
ProjectExplorer::RunMode mode) const; ProjectExplorer::RunMode mode) const;
ProjectExplorer::RunControl *create(ProjectExplorer::RunConfiguration *runConfiguration, ProjectExplorer::RunControl *create(ProjectExplorer::RunConfiguration *runConfiguration,
......
...@@ -108,10 +108,5 @@ RunControl *RemoteLinuxRunControlFactory::create(RunConfiguration *runConfig, Ru ...@@ -108,10 +108,5 @@ RunControl *RemoteLinuxRunControlFactory::create(RunConfiguration *runConfig, Ru
QTC_ASSERT(false, return 0); QTC_ASSERT(false, return 0);
} }
QString RemoteLinuxRunControlFactory::displayName() const
{
return tr("Run on remote Linux device");
}
} // namespace Internal } // namespace Internal
} // namespace RemoteLinux } // namespace RemoteLinux
...@@ -41,8 +41,6 @@ public: ...@@ -41,8 +41,6 @@ public:
explicit RemoteLinuxRunControlFactory(QObject *parent = 0); explicit RemoteLinuxRunControlFactory(QObject *parent = 0);
~RemoteLinuxRunControlFactory(); ~RemoteLinuxRunControlFactory();
QString displayName() const;
bool canRun(ProjectExplorer::RunConfiguration *runConfiguration, bool canRun(ProjectExplorer::RunConfiguration *runConfiguration,
ProjectExplorer::RunMode mode) const; ProjectExplorer::RunMode mode) const;
ProjectExplorer::RunControl *create(ProjectExplorer::RunConfiguration *runConfiguration, 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