forked from qt-creator/qt-creator
ToolchainFactory: Remove unused typeid
Change-Id: Id13787d549312251fbe806076b9ad594ab16c2d2 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -255,7 +255,6 @@ AndroidToolChainConfigWidget::AndroidToolChainConfigWidget(AndroidToolChain *tc)
|
|||||||
|
|
||||||
AndroidToolChainFactory::AndroidToolChainFactory()
|
AndroidToolChainFactory::AndroidToolChainFactory()
|
||||||
{
|
{
|
||||||
setTypeId(Constants::ANDROID_TOOLCHAIN_ID);
|
|
||||||
setDisplayName(tr("Android GCC"));
|
setDisplayName(tr("Android GCC"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -372,7 +372,6 @@ namespace Internal {
|
|||||||
|
|
||||||
CustomToolChainFactory::CustomToolChainFactory()
|
CustomToolChainFactory::CustomToolChainFactory()
|
||||||
{
|
{
|
||||||
setTypeId(Constants::CUSTOM_TOOLCHAIN_TYPEID);
|
|
||||||
setDisplayName(tr("Custom"));
|
setDisplayName(tr("Custom"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -761,7 +761,6 @@ QString GccToolChain::detectVersion() const
|
|||||||
|
|
||||||
GccToolChainFactory::GccToolChainFactory()
|
GccToolChainFactory::GccToolChainFactory()
|
||||||
{
|
{
|
||||||
setTypeId(Constants::GCC_TOOLCHAIN_TYPEID);
|
|
||||||
setDisplayName(tr("GCC"));
|
setDisplayName(tr("GCC"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1106,7 +1105,6 @@ ToolChain *ClangToolChain::clone() const
|
|||||||
ClangToolChainFactory::ClangToolChainFactory()
|
ClangToolChainFactory::ClangToolChainFactory()
|
||||||
{
|
{
|
||||||
setDisplayName(tr("Clang"));
|
setDisplayName(tr("Clang"));
|
||||||
setTypeId(Constants::CLANG_TOOLCHAIN_TYPEID);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<ToolChain *> ClangToolChainFactory::autoDetect()
|
QList<ToolChain *> ClangToolChainFactory::autoDetect()
|
||||||
@@ -1185,7 +1183,6 @@ ToolChain *MingwToolChain::clone() const
|
|||||||
|
|
||||||
MingwToolChainFactory::MingwToolChainFactory()
|
MingwToolChainFactory::MingwToolChainFactory()
|
||||||
{
|
{
|
||||||
setTypeId(Constants::MINGW_TOOLCHAIN_TYPEID);
|
|
||||||
setDisplayName(tr("MinGW"));
|
setDisplayName(tr("MinGW"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1264,7 +1261,6 @@ ToolChain *LinuxIccToolChain::clone() const
|
|||||||
LinuxIccToolChainFactory::LinuxIccToolChainFactory()
|
LinuxIccToolChainFactory::LinuxIccToolChainFactory()
|
||||||
{
|
{
|
||||||
setDisplayName(tr("Linux ICC"));
|
setDisplayName(tr("Linux ICC"));
|
||||||
setTypeId(Constants::LINUXICC_TOOLCHAIN_TYPEID);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<ToolChain *> LinuxIccToolChainFactory::autoDetect()
|
QList<ToolChain *> LinuxIccToolChainFactory::autoDetect()
|
||||||
|
@@ -481,7 +481,6 @@ void MsvcToolChainConfigWidget::setFromToolChain()
|
|||||||
|
|
||||||
MsvcToolChainFactory::MsvcToolChainFactory()
|
MsvcToolChainFactory::MsvcToolChainFactory()
|
||||||
{
|
{
|
||||||
setTypeId(Constants::MSVC_TOOLCHAIN_TYPEID);
|
|
||||||
setDisplayName(tr("MSVC"));
|
setDisplayName(tr("MSVC"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -179,7 +179,6 @@ class PROJECTEXPLORER_EXPORT ToolChainFactory : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Core::Id typeId() const { return m_typeId; }
|
|
||||||
QString displayName() const { return m_displayName; }
|
QString displayName() const { return m_displayName; }
|
||||||
|
|
||||||
virtual QList<ToolChain *> autoDetect();
|
virtual QList<ToolChain *> autoDetect();
|
||||||
@@ -195,12 +194,10 @@ public:
|
|||||||
static void autoDetectionToMap(QVariantMap &data, bool detected);
|
static void autoDetectionToMap(QVariantMap &data, bool detected);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void setTypeId(Core::Id id) { m_typeId = id; }
|
|
||||||
void setDisplayName(const QString &name) { m_displayName = name; }
|
void setDisplayName(const QString &name) { m_displayName = name; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString m_displayName;
|
QString m_displayName;
|
||||||
Core::Id m_typeId;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace ProjectExplorer
|
} // namespace ProjectExplorer
|
||||||
|
@@ -349,7 +349,6 @@ ToolChain *WinCEToolChain::clone() const
|
|||||||
|
|
||||||
WinCEToolChainFactory::WinCEToolChainFactory()
|
WinCEToolChainFactory::WinCEToolChainFactory()
|
||||||
{
|
{
|
||||||
setTypeId(Constants::WINCE_TOOLCHAIN_TYPEID);
|
|
||||||
setDisplayName(tr("WinCE"));
|
setDisplayName(tr("WinCE"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -152,7 +152,6 @@ QStringList QnxToolChain::reinterpretOptions(const QStringList &args) const
|
|||||||
|
|
||||||
QnxToolChainFactory::QnxToolChainFactory()
|
QnxToolChainFactory::QnxToolChainFactory()
|
||||||
{
|
{
|
||||||
setTypeId(Constants::QNX_TOOLCHAIN_ID);
|
|
||||||
setDisplayName(tr("QCC"));
|
setDisplayName(tr("QCC"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user