Commit 58b39b2a authored by Alessandro Portale's avatar Alessandro Portale

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: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 6d660f30
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment