[metacity] window: remove meta_window_get_rect, unused.
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] window: remove meta_window_get_rect, unused.
- Date: Wed, 1 Jun 2016 11:49:51 +0000 (UTC)
commit 1da011a322c77120ce2488b3af354c4308fa215b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Jun 1 14:49:38 2016 +0300
window: remove meta_window_get_rect, unused.
src/compositor/compositor-xrender.c | 17 -----------------
src/core/window.c | 6 ------
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 7df8fb5..ad4ae65 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 93f5b22..d76ff0a 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 20e34ad..6e81829 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]