diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-06-01 14:49:38 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-06-01 14:49:38 +0300 |
commit | 1da011a322c77120ce2488b3af354c4308fa215b (patch) | |
tree | fb2ec06824b01fe03738a472ab9a9d5336ed6a00 | |
parent | 527acc2198894357a7e829aaca3ab387a1cd0a9c (diff) | |
download | metacity-1da011a322c77120ce2488b3af354c4308fa215b.tar.gz |
window: remove meta_window_get_rect, unused.
-rw-r--r-- | src/compositor/compositor-xrender.c | 17 | ||||
-rw-r--r-- | src/core/window.c | 6 | ||||
-rw-r--r-- | src/include/window.h | 1 |
3 files changed, 0 insertions, 24 deletions
diff --git a/src/compositor/compositor-xrender.c b/src/compositor/compositor-xrender.c index 7df8fb53..ad4ae657 100644 --- a/src/compositor/compositor-xrender.c +++ b/src/compositor/compositor-xrender.c @@ -2667,23 +2667,6 @@ process_configure_notify (MetaCompositorXRender *compositor, if (cw) { -#if 0 - int x = -1, y = -1, width = -1, height = -1; - int ex = -1, ey = -1, ewidth = -1, eheight = -1; - MetaRectangle *rect; - - if (cw->window) { - rect = meta_window_get_rect (cw->window); - x = rect->x; - y = rect->y; - width = rect->width; - height = rect->height; - } - fprintf (stderr, "configure notify xy (%d %d) -> (%d %d), wh (%d %d) -> (%d %d)\n", - x, y, event->x, event->y, - width, height, event->width, event->height); -#endif - if (compositor->debug) { fprintf (stderr, "configure notify %d %d %d\n", cw->damaged, diff --git a/src/core/window.c b/src/core/window.c index 93f5b225..d76ff0a3 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -8631,12 +8631,6 @@ meta_window_is_shaded (MetaWindow *window) return window->shaded; } -MetaRectangle * -meta_window_get_rect (MetaWindow *window) -{ - return &window->rect; -} - MetaScreen * meta_window_get_screen (MetaWindow *window) { diff --git a/src/include/window.h b/src/include/window.h index 20e34add..6e81829d 100644 --- a/src/include/window.h +++ b/src/include/window.h @@ -30,7 +30,6 @@ MetaFrame *meta_window_get_frame (MetaWindow *window); gboolean meta_window_has_focus (MetaWindow *window); gboolean meta_window_is_shaded (MetaWindow *window); -MetaRectangle *meta_window_get_rect (MetaWindow *window); MetaScreen *meta_window_get_screen (MetaWindow *window); MetaDisplay *meta_window_get_display (MetaWindow *window); Window meta_window_get_xwindow (MetaWindow *window); |