From 58b39b2ab414697ad3b96e01f96f685c42d3254c Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Fri, 17 Oct 2014 09:46:16 +0200 Subject: [PATCH] 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 --- src/plugins/welcome/welcomeplugin.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp index e1e0b1595c0..fd87189fa20 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 pluginHash;