forked from qt-creator/qt-creator
BareMetal: Inline two functions into their only callers
Change-Id: I86c9cb8a8e6d51e7401e8a926f65c6d0dc364b89 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -145,16 +145,6 @@ Utils::OutputFormatter *BareMetalCustomRunConfiguration::createOutputFormatter()
|
||||
return new QtSupport::QtOutputFormatter(target()->project());
|
||||
}
|
||||
|
||||
Core::Id BareMetalCustomRunConfiguration::runConfigId()
|
||||
{
|
||||
return "BareMetal.CustomRunConfig";
|
||||
}
|
||||
|
||||
QString BareMetalCustomRunConfiguration::runConfigDefaultDisplayName()
|
||||
{
|
||||
return tr("Custom Executable (on GDB server or hardware debugger)");
|
||||
}
|
||||
|
||||
static QString exeKey()
|
||||
{
|
||||
return QLatin1String("BareMetal.CustomRunConfig.Executable");
|
||||
|
||||
@@ -47,9 +47,6 @@ public:
|
||||
|
||||
void setLocalExecutableFilePath(const QString &executable) { m_localExecutable = executable; }
|
||||
|
||||
static Core::Id runConfigId();
|
||||
static QString runConfigDefaultDisplayName();
|
||||
|
||||
bool fromMap(const QVariantMap &map) override;
|
||||
QVariantMap toMap() const override;
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
#include <projectexplorer/kitinformation.h>
|
||||
#include <projectexplorer/project.h>
|
||||
#include <projectexplorer/target.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
using namespace ProjectExplorer;
|
||||
|
||||
@@ -68,8 +67,7 @@ BareMetalCustomRunConfigurationFactory::BareMetalCustomRunConfigurationFactory(Q
|
||||
IRunConfigurationFactory(parent)
|
||||
{
|
||||
setObjectName("BareMetalCustomRunConfigurationFactory");
|
||||
registerRunConfiguration<BareMetalCustomRunConfiguration>
|
||||
(BareMetalCustomRunConfiguration::runConfigId());
|
||||
registerRunConfiguration<BareMetalCustomRunConfiguration>("BareMetal.CustomRunConfig");
|
||||
setSupportedTargetDeviceTypes({BareMetal::Constants::BareMetalOsType});
|
||||
}
|
||||
|
||||
@@ -80,7 +78,7 @@ QList<QString> BareMetalCustomRunConfigurationFactory::availableBuildTargets(Tar
|
||||
|
||||
QString BareMetalCustomRunConfigurationFactory::displayNameForBuildTarget(const QString &) const
|
||||
{
|
||||
return BareMetalCustomRunConfiguration::runConfigDefaultDisplayName();
|
||||
return BareMetalCustomRunConfiguration::tr("Custom Executable (on GDB server or hardware debugger)");
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user