[metacity] prefs: simplify meta_prefs_get_compositing_manager



commit 2721d7804e29cc5948492115963b8d4cae04e2ee
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Mar 11 01:06:05 2017 +0200

    prefs: simplify meta_prefs_get_compositing_manager

 src/core/prefs.c |   30 ------------------------------
 1 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/src/core/prefs.c b/src/core/prefs.c
index 808c1ad..49074fe 100644
--- a/src/core/prefs.c
+++ b/src/core/prefs.c
@@ -1759,36 +1759,6 @@ meta_prefs_get_window_binding (const char          *name,
 gboolean
 meta_prefs_get_compositing_manager (void)
 {
-  MetaDisplay *display;
-  static gboolean warned = FALSE;
-
-  display = meta_get_display ();
-
-  if (!display)
-    return compositing_manager;
-
-  if (!compositing_manager)
-    warned = FALSE;
-
-  if (compositing_manager &&
-      (!META_DISPLAY_HAS_COMPOSITE (display) ||
-       !META_DISPLAY_HAS_DAMAGE (display) ||
-       !META_DISPLAY_HAS_XFIXES (display) ||
-       !META_DISPLAY_HAS_RENDER (display)))
-    {
-      if (!warned)
-        {
-          g_warning ("Missing %s extension required for compositing",
-                     !META_DISPLAY_HAS_COMPOSITE (display) ? "composite" :
-                     !META_DISPLAY_HAS_DAMAGE (display) ? "damage" :
-                     !META_DISPLAY_HAS_XFIXES (display) ? "xfixes" : "render");
-
-          warned = TRUE;
-        }
-
-      return FALSE;
-    }
-
   return compositing_manager;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]