diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp index e1e0b1595c07abd74de8591d8af088a1e8f30aa2..fd87189fa20bcb6b6dffa34794e3abdbee120613 100644 --- a/src/plugins/welcome/welcomeplugin.cpp +++ b/src/plugins/welcome/welcomeplugin.cpp @@ -84,8 +84,6 @@ public: void initPlugins(); int activePlugin() const { return m_activePlugin; } - Q_SCRIPTABLE QString platform() const; - // bool eventFilter(QObject *, QEvent *); public slots: @@ -273,17 +271,6 @@ void WelcomeMode::initPlugins() QUrl::fromLocalFile(path)); } -QString WelcomeMode::platform() const -{ - switch (HostOsInfo::hostOs()) { - case OsTypeWindows: return QLatin1String("windows"); - case OsTypeMac: return QLatin1String("mac"); - case OsTypeLinux: return QLatin1String("linux"); - case OsTypeOtherUnix: return QLatin1String("unix"); - default: return QLatin1String("other"); - } -} - void WelcomeMode::welcomePluginAdded(QObject *obj) { QHash<Utils::IWelcomePage::Id, Utils::IWelcomePage*> pluginHash;