summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2020-09-04 22:16:41 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2020-09-04 22:16:41 +0300
commit7f08c14226d3207258e0cc8ba21b8a260c4e54ee (patch)
treeee6d5474facf851100dc2819ba27c12cf172038b
parent181909aa4a7b9bca21c95d0825675cd2d80a2021 (diff)
downloadmetacity-7f08c14226d3207258e0cc8ba21b8a260c4e54ee.tar.gz
core: remove unused functions
-rw-r--r--src/core/core.c100
-rw-r--r--src/include/core.h34
2 files changed, 3 insertions, 131 deletions
diff --git a/src/core/core.c b/src/core/core.c
index 5426f061..e0b0cf48 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -178,38 +178,6 @@ meta_core_queue_frame_resize (Display *xdisplay,
}
void
-meta_core_user_move (Display *xdisplay,
- Window frame_xwindow,
- int x,
- int y)
-{
- MetaWindow *window = get_window (xdisplay, frame_xwindow);
-
- meta_window_move (window, TRUE, x, y);
-}
-
-void
-meta_core_user_resize (Display *xdisplay,
- Window frame_xwindow,
- int gravity,
- int width,
- int height)
-{
- MetaWindow *window = get_window (xdisplay, frame_xwindow);
-
- meta_window_resize_with_gravity (window, TRUE, width, height, gravity);
-}
-
-void
-meta_core_user_raise (Display *xdisplay,
- Window frame_xwindow)
-{
- MetaWindow *window = get_window (xdisplay, frame_xwindow);
-
- meta_window_raise (window);
-}
-
-void
meta_core_user_lower_and_unfocus (Display *xdisplay,
Window frame_xwindow,
guint32 timestamp)
@@ -401,74 +369,6 @@ meta_core_shade (Display *xdisplay,
}
void
-meta_core_unstick (Display *xdisplay,
- Window frame_xwindow)
-{
- MetaWindow *window = get_window (xdisplay, frame_xwindow);
-
- meta_window_unstick (window);
-}
-
-void
-meta_core_make_above (Display *xdisplay,
- Window frame_xwindow)
-{
- MetaWindow *window = get_window (xdisplay, frame_xwindow);
-
- meta_window_make_above (window);
-}
-
-void
-meta_core_unmake_above (Display *xdisplay,
- Window frame_xwindow)
-{
- MetaWindow *window = get_window (xdisplay, frame_xwindow);
-
- meta_window_unmake_above (window);
-}
-
-void
-meta_core_stick (Display *xdisplay,
- Window frame_xwindow)
-{
- MetaWindow *window = get_window (xdisplay, frame_xwindow);
-
- meta_window_stick (window);
-}
-
-void
-meta_core_change_workspace (Display *xdisplay,
- Window frame_xwindow,
- int new_workspace)
-{
- MetaWindow *window = get_window (xdisplay, frame_xwindow);
-
- meta_window_change_workspace (window,
- meta_screen_get_workspace_by_index (window->screen,
- new_workspace));
-}
-
-int
-meta_core_get_num_workspaces (Screen *xscreen)
-{
- MetaScreen *screen;
-
- screen = meta_screen_for_x_screen (xscreen);
-
- return meta_screen_get_n_workspaces (screen);
-}
-
-int
-meta_core_get_active_workspace (Screen *xscreen)
-{
- MetaScreen *screen;
-
- screen = meta_screen_for_x_screen (xscreen);
-
- return meta_workspace_index (screen->active_workspace);
-}
-
-void
meta_core_show_window_menu (Display *xdisplay,
Window frame_xwindow,
const GdkRectangle *rect,
diff --git a/src/include/core.h b/src/include/core.h
index 08e22a0a..6fc0bc02 100644
--- a/src/include/core.h
+++ b/src/include/core.h
@@ -82,9 +82,9 @@ typedef enum
*
* Another possible improvement is that core.h still has a bunch of
* functions which can't be described by the formula "give a display and
- * an X window, get a single value" (meta_core_user_move, for example), but
- * which could theoretically be handled by this function if we relaxed the
- * requirement that all questions should have exactly one argument.
+ * an X window, get a single value", but which could theoretically be handled
+ * by this function if we relaxed the requirement that all questions should
+ * have exactly one argument.
*/
void meta_core_get (Display *xdisplay,
Window window,
@@ -93,19 +93,6 @@ void meta_core_get (Display *xdisplay,
void meta_core_queue_frame_resize (Display *xdisplay,
Window frame_xwindow);
-/* Move as a result of user operation */
-void meta_core_user_move (Display *xdisplay,
- Window frame_xwindow,
- int x,
- int y);
-void meta_core_user_resize (Display *xdisplay,
- Window frame_xwindow,
- int gravity,
- int width,
- int height);
-
-void meta_core_user_raise (Display *xdisplay,
- Window frame_xwindow);
void meta_core_user_lower_and_unfocus (Display *xdisplay,
Window frame_xwindow,
guint32 timestamp);
@@ -139,22 +126,7 @@ void meta_core_unshade (Display *xdisplay,
void meta_core_shade (Display *xdisplay,
Window frame_xwindow,
guint32 timestamp);
-void meta_core_unstick (Display *xdisplay,
- Window frame_xwindow);
-void meta_core_stick (Display *xdisplay,
- Window frame_xwindow);
-void meta_core_unmake_above (Display *xdisplay,
- Window frame_xwindow);
-void meta_core_make_above (Display *xdisplay,
- Window frame_xwindow);
-void meta_core_change_workspace (Display *xdisplay,
- Window frame_xwindow,
- int new_workspace);
-int meta_core_get_num_workspaces (Screen *xscreen);
-int meta_core_get_active_workspace (Screen *xscreen);
-int meta_core_get_frame_workspace (Display *xdisplay,
- Window frame_xwindow);
const char* meta_core_get_workspace_name_with_index (Display *xdisplay,
int index);