From 524fcbecfd4a858946f7c92d37a5a091ef87bf47 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 31 Oct 2017 21:28:28 -0400 Subject: [PATCH] Drop gdk_screen_get_root_window This function is no longer used. --- gdk/broadway/gdkscreen-broadway.c | 1 - gdk/gdkinternals.h | 1 - gdk/gdkscreen.c | 8 -------- gdk/gdkscreenprivate.h | 1 - gdk/quartz/gdkscreen-quartz.c | 7 ------- gdk/wayland/gdkscreen-wayland.c | 1 - gdk/win32/gdkscreen-win32.c | 1 - gdk/x11/gdkscreen-x11.c | 1 - 8 files changed, 21 deletions(-) diff --git a/gdk/broadway/gdkscreen-broadway.c b/gdk/broadway/gdkscreen-broadway.c index 207e27b54a..f038fa85c9 100644 --- a/gdk/broadway/gdkscreen-broadway.c +++ b/gdk/broadway/gdkscreen-broadway.c @@ -139,6 +139,5 @@ gdk_broadway_screen_class_init (GdkBroadwayScreenClass *klass) object_class->finalize = gdk_broadway_screen_finalize; screen_class->get_display = gdk_broadway_screen_get_display; - screen_class->get_root_window = gdk_broadway_screen_get_root_window; } diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index 6674b3b2df..1a89c0d22e 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -396,7 +396,6 @@ void _gdk_screen_set_resolution (GdkScreen *screen, gdouble dpi); void _gdk_screen_close (GdkScreen *screen); -GdkWindow *gdk_screen_get_root_window (GdkScreen *screen); GdkWindow *gdk_get_default_root_window (void); diff --git a/gdk/gdkscreen.c b/gdk/gdkscreen.c index 5a04bb7183..6eb99b794e 100644 --- a/gdk/gdkscreen.c +++ b/gdk/gdkscreen.c @@ -117,11 +117,3 @@ gdk_screen_get_display (GdkScreen *screen) return GDK_SCREEN_GET_CLASS (screen)->get_display (screen); } - -GdkWindow * -gdk_screen_get_root_window (GdkScreen *screen) -{ - g_return_val_if_fail (GDK_IS_SCREEN (screen), NULL); - - return GDK_SCREEN_GET_CLASS (screen)->get_root_window (screen); -} diff --git a/gdk/gdkscreenprivate.h b/gdk/gdkscreenprivate.h index 04b7a3ea07..ffc2131cbe 100644 --- a/gdk/gdkscreenprivate.h +++ b/gdk/gdkscreenprivate.h @@ -41,7 +41,6 @@ struct _GdkScreenClass GObjectClass parent_class; GdkDisplay * (* get_display) (GdkScreen *screen); - GdkWindow * (* get_root_window) (GdkScreen *screen); /* Signals: */ void (*monitors_changed) (GdkScreen *screen); diff --git a/gdk/quartz/gdkscreen-quartz.c b/gdk/quartz/gdkscreen-quartz.c index f8cd58f4d0..452f84b014 100644 --- a/gdk/quartz/gdkscreen-quartz.c +++ b/gdk/quartz/gdkscreen-quartz.c @@ -292,12 +292,6 @@ gdk_quartz_screen_get_display (GdkScreen *screen) return _gdk_display; } -static GdkWindow * -gdk_quartz_screen_get_root_window (GdkScreen *screen) -{ - return _gdk_root; -} - static gint get_mm_from_pixels (NSScreen *screen, int pixels) { @@ -318,5 +312,4 @@ gdk_quartz_screen_class_init (GdkQuartzScreenClass *klass) object_class->finalize = gdk_quartz_screen_finalize; screen_class->get_display = gdk_quartz_screen_get_display; - screen_class->get_root_window = gdk_quartz_screen_get_root_window; } diff --git a/gdk/wayland/gdkscreen-wayland.c b/gdk/wayland/gdkscreen-wayland.c index 0778225ecf..bf11e35a43 100644 --- a/gdk/wayland/gdkscreen-wayland.c +++ b/gdk/wayland/gdkscreen-wayland.c @@ -614,7 +614,6 @@ _gdk_wayland_screen_class_init (GdkWaylandScreenClass *klass) object_class->finalize = gdk_wayland_screen_finalize; screen_class->get_display = gdk_wayland_screen_get_display; - screen_class->get_root_window = gdk_wayland_screen_get_root_window; } static void diff --git a/gdk/win32/gdkscreen-win32.c b/gdk/win32/gdkscreen-win32.c index a174b9eed8..4a93cc754c 100644 --- a/gdk/win32/gdkscreen-win32.c +++ b/gdk/win32/gdkscreen-win32.c @@ -204,5 +204,4 @@ gdk_win32_screen_class_init (GdkWin32ScreenClass *klass) object_class->finalize = gdk_win32_screen_finalize; screen_class->get_display = gdk_win32_screen_get_display; - screen_class->get_root_window = gdk_win32_screen_get_root_window; } diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c index caf4866711..bfa18bf4a9 100644 --- a/gdk/x11/gdkscreen-x11.c +++ b/gdk/x11/gdkscreen-x11.c @@ -1282,7 +1282,6 @@ gdk_x11_screen_class_init (GdkX11ScreenClass *klass) object_class->finalize = gdk_x11_screen_finalize; screen_class->get_display = gdk_x11_screen_get_display; - screen_class->get_root_window = gdk_x11_screen_get_root_window; signals[WINDOW_MANAGER_CHANGED] = g_signal_new (g_intern_static_string ("window-manager-changed"),