screen: Drop the MetaScreen parameter from the foreach function

It's unused.
This commit is contained in:
Jasper St. Pierre 2014-08-15 20:05:48 -04:00
parent 9c62a907c5
commit 8627b65f8d
3 changed files with 11 additions and 15 deletions

View File

@ -38,7 +38,7 @@
#include "ui.h" #include "ui.h"
#include "meta-monitor-manager.h" #include "meta-monitor-manager.h"
typedef void (* MetaScreenWindowFunc) (MetaScreen *screen, MetaWindow *window, typedef void (* MetaScreenWindowFunc) (MetaWindow *window,
gpointer user_data); gpointer user_data);
typedef enum typedef enum

View File

@ -972,7 +972,7 @@ meta_screen_foreach_window (MetaScreen *screen,
MetaScreenWindowFunc func, MetaScreenWindowFunc func,
gpointer data) gpointer data)
{ {
GSList *windows, *l; GSList *windows;
/* If we end up doing this often, just keeping a list /* If we end up doing this often, just keeping a list
* of windows might be sensible. * of windows might be sensible.
@ -980,11 +980,7 @@ meta_screen_foreach_window (MetaScreen *screen,
windows = meta_display_list_windows (screen->display, META_LIST_DEFAULT); windows = meta_display_list_windows (screen->display, META_LIST_DEFAULT);
for (l = windows; l != NULL; l = l->next) g_slist_foreach (windows, (GFunc) func, data);
{
MetaWindow *window = l->data;
func (screen, window, data);
}
g_slist_free (windows); g_slist_free (windows);
} }
@ -2384,9 +2380,8 @@ meta_screen_free_workspace_layout (MetaWorkspaceLayout *layout)
} }
static void static void
meta_screen_resize_func (MetaScreen *screen, meta_screen_resize_func (MetaWindow *window,
MetaWindow *window, gpointer user_data)
void *user_data)
{ {
if (window->struts) if (window->struts)
{ {

View File

@ -158,7 +158,8 @@ meta_workspace_init (MetaWorkspace *workspace)
} }
static void static void
maybe_add_to_list (MetaScreen *screen, MetaWindow *window, gpointer data) maybe_add_to_list (MetaWindow *window,
gpointer data)
{ {
GList **mru_list = data; GList **mru_list = data;