iOS: Get rid of singleton instance accessor in platform plugin

None of the other platform plugins have one, and it's not used anywhere.

Change-Id: Id46ab5f75c9819511c3e9d123d0338c3c8799869
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
This commit is contained in:
Tor Arne Vestbø 2012-11-04 18:56:45 +01:00
parent 3020d06fdb
commit 6d36a83b41
2 changed files with 0 additions and 11 deletions

View File

@ -52,8 +52,6 @@ public:
QIOSIntegration();
~QIOSIntegration();
static QIOSIntegration *instance();
QPlatformPixmap *createPlatformPixmap(QPlatformPixmap::PixelType type) const;
QPlatformWindow *createPlatformWindow(QWindow *window) const;
QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const;

View File

@ -51,18 +51,9 @@
QT_BEGIN_NAMESPACE
static QIOSIntegration *m_instance = 0;
QIOSIntegration * QIOSIntegration::instance()
{
return m_instance;
}
QIOSIntegration::QIOSIntegration()
:m_fontDb(new QCoreTextFontDatabase)
{
if (!m_instance)
m_instance = this;
m_screens << new QIOSScreen(0);
}