diff options
author | Alessandro Portale <alessandro.portale@digia.com> | 2014-10-17 09:46:16 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@digia.com> | 2014-10-17 12:50:51 +0200 |
commit | 58b39b2ab414697ad3b96e01f96f685c42d3254c (patch) | |
tree | 2dd5699dd641669ab769ed615dd05c61f63c1d56 /src/plugins/welcome/welcomeplugin.cpp | |
parent | 6d660f3051ae39833d4f32968a94741a63b816c5 (diff) |
WelcomeMode: Remove unused code
The "platform" function is not used in QML, so let's remove it. In case
it will be needed at some point in time, better use Qt.platform
Change-Id: Ie9cecf8f2953934fbe8b0bb16f2267975af30fd0
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Diffstat (limited to 'src/plugins/welcome/welcomeplugin.cpp')
-rw-r--r-- | src/plugins/welcome/welcomeplugin.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp index e1e0b1595c..fd87189fa2 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; |