[mutter] ClutterStageX11: Remove dead code



commit f31d71ce63a349097695ec65496fff52bab01bc8
Author: Jonas Ådahl <jadahl gmail com>
Date:   Sun May 15 11:53:52 2016 +0800

    ClutterStageX11: Remove dead code
    
    https://bugzilla.gnome.org/show_bug.cgi?id=768976

 clutter/clutter/x11/clutter-stage-x11.c |   26 --------------------------
 clutter/clutter/x11/clutter-stage-x11.h |    3 ---
 2 files changed, 0 insertions(+), 29 deletions(-)
---
diff --git a/clutter/clutter/x11/clutter-stage-x11.c b/clutter/clutter/x11/clutter-stage-x11.c
index 63b2e5b..41bd8ca 100644
--- a/clutter/clutter/x11/clutter-stage-x11.c
+++ b/clutter/clutter/x11/clutter-stage-x11.c
@@ -1531,29 +1531,3 @@ _clutter_stage_x11_set_user_time (ClutterStageX11 *stage_x11,
 
   set_user_time (backend_x11, stage_x11, user_time);
 }
-
-gboolean
-_clutter_stage_x11_get_root_coords (ClutterStageX11 *stage_x11,
-                                    gint            *root_x,
-                                    gint            *root_y)
-{
-  ClutterStageCogl *stage_cogl = CLUTTER_STAGE_COGL (stage_x11);
-  ClutterBackendX11 *backend_x11 = CLUTTER_BACKEND_X11 (stage_cogl->backend);
-  gint return_val;
-  Window child;
-  gint tx, ty;
-
-  return_val = XTranslateCoordinates (backend_x11->xdpy,
-                                      stage_x11->xwin,
-                                      backend_x11->xwin_root,
-                                      0, 0, &tx, &ty,
-                                      &child);
-
-  if (root_x)
-    *root_x = tx;
-
-  if (root_y)
-    *root_y = ty;
-
-  return (return_val == 0);
-}
diff --git a/clutter/clutter/x11/clutter-stage-x11.h b/clutter/clutter/x11/clutter-stage-x11.h
index 0bf1295..1e03510 100644
--- a/clutter/clutter/x11/clutter-stage-x11.h
+++ b/clutter/clutter/x11/clutter-stage-x11.h
@@ -85,9 +85,6 @@ void  _clutter_stage_x11_events_device_changed (ClutterStageX11 *stage_x11,
 /* Private to subclasses */
 void            _clutter_stage_x11_set_user_time                (ClutterStageX11 *stage_x11,
                                                                  guint32          user_time);
-gboolean        _clutter_stage_x11_get_root_coords              (ClutterStageX11 *stage_x11,
-                                                                 gint            *root_x,
-                                                                 gint            *root_y);
 
 G_END_DECLS
 


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