[mutter] window: Remove meta_window_resize



commit 6c37f6e601717b39c728d87420cbc70954847e6a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue May 20 18:18:31 2014 -0400

    window: Remove meta_window_resize
    
    It's unused, and it's a poor API. resize_with_gravity and resize_frame
    are better.

 src/core/window-private.h |    4 ----
 src/core/window.c         |   28 ----------------------------
 src/meta/window.h         |    1 -
 3 files changed, 0 insertions(+), 33 deletions(-)
---
diff --git a/src/core/window-private.h b/src/core/window-private.h
index 723be33..eb3d482 100644
--- a/src/core/window-private.h
+++ b/src/core/window-private.h
@@ -550,10 +550,6 @@ void        meta_window_move               (MetaWindow  *window,
                                             gboolean     user_op,
                                             int          root_x_nw,
                                             int          root_y_nw);
-void        meta_window_resize             (MetaWindow  *window,
-                                            gboolean     user_op,
-                                            int          w,
-                                            int          h);
 void        meta_window_move_resize        (MetaWindow  *window,
                                             gboolean     user_op,
                                             int          root_x_nw,
diff --git a/src/core/window.c b/src/core/window.c
index 851600c..dde97f7 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -3749,34 +3749,6 @@ meta_window_move_resize_internal (MetaWindow          *window,
 }
 
 /**
- * meta_window_resize:
- * @window: a #MetaWindow
- * @user_op: bool to indicate whether or not this is a user operation
- * @w: desired width
- * @h: desired height
- *
- * Resize the window to the desired size.
- */
-void
-meta_window_resize (MetaWindow  *window,
-                    gboolean     user_op,
-                    int          w,
-                    int          h)
-{
-  MetaMoveResizeFlags flags;
-  MetaRectangle rect;
-
-  g_return_if_fail (!window->override_redirect);
-
-  flags = (user_op ? META_IS_USER_ACTION : 0) | META_IS_RESIZE_ACTION;
-
-  rect.width = w;
-  rect.height = h;
-
-  meta_window_move_resize_internal (window, flags, NorthWestGravity, rect);
-}
-
-/**
  * meta_window_move:
  * @window: a #MetaWindow
  * @user_op: bool to indicate whether or not this is a user operation
diff --git a/src/meta/window.h b/src/meta/window.h
index 3677790..b1b68c6 100644
--- a/src/meta/window.h
+++ b/src/meta/window.h
@@ -151,7 +151,6 @@ void meta_window_move(MetaWindow *window, gboolean user_op, int root_x_nw, int r
 void meta_window_move_frame(MetaWindow *window, gboolean user_op, int root_x_nw, int root_y_nw);
 void meta_window_move_resize_frame (MetaWindow *window, gboolean user_op, int root_x_nw, int root_y_nw, int 
w, int h);
 void meta_window_move_to_monitor (MetaWindow *window, int monitor);
-void meta_window_resize(MetaWindow *window, gboolean user_op, int w, int h);
 
 void meta_window_set_demands_attention (MetaWindow *window);
 void meta_window_unset_demands_attention (MetaWindow *window);


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