From 8cb7a450aed27a057c5fb1ac2a4d2a9c029d9b49 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 10 May 2012 17:00:25 -0300 Subject: [PATCH] screen: Remove more unused private API These queued redraws, which is a problem when we want to know exactly what changed when we redraw, so we do minimal effort. We're eventually going to replace the queue_redraw API with something a lot better, so let's just get these out of the way now. https://bugzilla.gnome.org/show_bug.cgi?id=676052 --- src/core/screen-private.h | 2 -- src/core/screen.c | 25 ------------------------- 2 files changed, 27 deletions(-) diff --git a/src/core/screen-private.h b/src/core/screen-private.h index 866f5fb05..bd1917bff 100644 --- a/src/core/screen-private.h +++ b/src/core/screen-private.h @@ -156,8 +156,6 @@ void meta_screen_manage_all_windows (MetaScreen *scree void meta_screen_foreach_window (MetaScreen *screen, MetaScreenWindowFunc func, gpointer data); -void meta_screen_queue_frame_redraws (MetaScreen *screen); -void meta_screen_queue_window_resizes (MetaScreen *screen); void meta_screen_set_cursor (MetaScreen *screen, MetaCursor cursor); diff --git a/src/core/screen.c b/src/core/screen.c index 536fd19ea..328328f4d 100644 --- a/src/core/screen.c +++ b/src/core/screen.c @@ -1216,31 +1216,6 @@ meta_screen_foreach_window (MetaScreen *screen, g_slist_free (winlist); } -static void -queue_draw (MetaScreen *screen, MetaWindow *window, gpointer data) -{ - if (window->frame) - meta_frame_queue_draw (window->frame); -} - -void -meta_screen_queue_frame_redraws (MetaScreen *screen) -{ - meta_screen_foreach_window (screen, queue_draw, NULL); -} - -static void -queue_resize (MetaScreen *screen, MetaWindow *window, gpointer data) -{ - meta_window_queue (window, META_QUEUE_MOVE_RESIZE); -} - -void -meta_screen_queue_window_resizes (MetaScreen *screen) -{ - meta_screen_foreach_window (screen, queue_resize, NULL); -} - int meta_screen_get_n_workspaces (MetaScreen *screen) {