Remove dummy impl. of shared graphics cache in XCB plugin
[profile/ivi/qtbase.git] / src / plugins / platforms / xcb / qxcbintegration.cpp
index 50d3c4f..255c49f 100644 (file)
@@ -47,7 +47,6 @@
 #include "qxcbnativeinterface.h"
 #include "qxcbclipboard.h"
 #include "qxcbdrag.h"
-#include "qxcbsharedgraphicscache.h"
 
 #include <xcb/xcb.h>
 
@@ -118,10 +117,6 @@ QXcbIntegration::QXcbIntegration(const QStringList &parameters)
 #ifndef QT_NO_ACCESSIBILITY
     m_accessibility.reset(new QPlatformAccessibility());
 #endif
-
-#if defined(QT_USE_XCB_SHARED_GRAPHICS_CACHE)
-    m_sharedGraphicsCache.reset(new QXcbSharedGraphicsCache);
-#endif
 }
 
 QXcbIntegration::~QXcbIntegration()
@@ -203,10 +198,6 @@ QPlatformBackingStore *QXcbIntegration::createPlatformBackingStore(QWindow *wind
 bool QXcbIntegration::hasCapability(QPlatformIntegration::Capability cap) const
 {
     switch (cap) {
-#if defined(QT_USE_XCB_SHARED_GRAPHICS_CACHE)
-    case SharedGraphicsCache: return true;
-#endif
-
     case ThreadedPixmaps: return true;
     case OpenGL: return true;
     case ThreadedOpenGL: return false;
@@ -257,26 +248,6 @@ QPlatformAccessibility *QXcbIntegration::accessibility() const
 }
 #endif
 
-#if defined(QT_USE_XCB_SHARED_GRAPHICS_CACHE)
-static bool sharedGraphicsCacheDisabled()
-{
-    static const char *environmentVariable = "QT_DISABLE_SHARED_CACHE";
-    static bool cacheDisabled = !qgetenv(environmentVariable).isEmpty()
-            && qgetenv(environmentVariable).toInt() != 0;
-    return cacheDisabled;
-}
-
-QPlatformSharedGraphicsCache *QXcbIntegration::createPlatformSharedGraphicsCache(const char *cacheId) const
-{
-    Q_UNUSED(cacheId);
-
-    if (sharedGraphicsCacheDisabled())
-        return 0;
-
-    return m_sharedGraphicsCache.data();
-}
-#endif
-
 QPlatformServices *QXcbIntegration::services() const
 {
     return m_services.data();