Remove unused PlatformQuirks functions.
authorJason McDonald <jason.mcdonald@nokia.com>
Fri, 4 Nov 2011 05:33:24 +0000 (15:33 +1000)
committerQt by Nokia <qt-info@nokia.com>
Sat, 5 Nov 2011 01:31:07 +0000 (02:31 +0100)
These functions are no longer used anywhere in qtbase and are highly
unlikely to be used elsewhere.

Change-Id: I8e7c433c3b3e799ce0e5bc465182a5046275eb00
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/platformquirks.h

index bf2f843..b9c9885 100644 (file)
 
 struct PlatformQuirks
 {
-    enum MediaFileTypes
-    {
-        mp3,
-        wav,
-        ogg
-    };
-
-    /* On some platforms, libpng or libjpeg sacrifice precision for speed.
-       Esp. with NEON support, color values after decoding can be off by up
-       to three bytes.
-     */
-    static inline bool isImageLoaderImprecise()
-    {
-#if defined(Q_WS_X11)
-        // ### this is a very bad assumption, we should really check the version of libjpeg
-        return X11->desktopEnvironment == DE_MEEGO_COMPOSITOR;
-#else
-        return false;
-#endif
-    }
-
     /* Some windowing systems automatically maximize apps on startup (e.g. Maemo)
        "Normal" fixed-sized windows do not work, the WM ignores their size settings.
     */
@@ -95,18 +74,6 @@ struct PlatformQuirks
         return true;
 #endif
     }
-
-    /* On some systems an ogg codec is not installed by default.
-    The autotests have to know which fileType is the default on the system*/
-    static inline MediaFileTypes defaultMediaFileType()
-    {
-#ifdef Q_WS_X11
-        // ### very bad assumption
-        if (X11->desktopEnvironment == DE_MEEGO_COMPOSITOR)
-            return PlatformQuirks::mp3;
-#endif
-        return PlatformQuirks::ogg;
-    }
 };
 
 #endif