[gtk] gdk: Remove a bunch of unused variables
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] gdk: Remove a bunch of unused variables
- Date: Wed, 21 Mar 2018 22:32:47 +0000 (UTC)
commit 4fff16860fbe99147cbd927b85f4f114825a2bcd
Author: Benjamin Otte <otte redhat com>
Date: Wed Mar 21 19:58:49 2018 +0100
gdk: Remove a bunch of unused variables
gdk/broadway/gdksurface-broadway.c | 1 -
gdk/broadway/gdksurface-broadway.h | 1 -
gdk/gdkinternals.h | 4 ----
gdk/gdksurface.c | 1 -
gdk/win32/gdksurface-win32.c | 1 -
gdk/win32/gdksurface-win32.h | 2 --
6 files changed, 10 deletions(-)
---
diff --git a/gdk/broadway/gdksurface-broadway.c b/gdk/broadway/gdksurface-broadway.c
index 790a240b1f..06ba909c57 100644
--- a/gdk/broadway/gdksurface-broadway.c
+++ b/gdk/broadway/gdksurface-broadway.c
@@ -123,7 +123,6 @@ queue_flush (GdkSurface *surface)
static void
gdk_surface_impl_broadway_init (GdkSurfaceImplBroadway *impl)
{
- impl->toplevel_surface_type = -1;
}
static void
diff --git a/gdk/broadway/gdksurface-broadway.h b/gdk/broadway/gdksurface-broadway.h
index ca6a5247b1..a89042e17a 100644
--- a/gdk/broadway/gdksurface-broadway.h
+++ b/gdk/broadway/gdksurface-broadway.h
@@ -61,7 +61,6 @@ struct _GdkSurfaceImplBroadway
int pre_maximize_width;
int pre_maximize_height;
- gint8 toplevel_surface_type;
gboolean dirty;
gboolean last_synced;
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index fe65fbbec3..dd23991014 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -156,8 +156,6 @@ struct _GdkSurface
guint8 resize_count;
- gint8 toplevel_surface_type;
-
GList *children;
GList children_list_node;
@@ -191,14 +189,12 @@ struct _GdkSurface
guint input_only : 1;
guint pass_through : 1;
guint modal_hint : 1;
- guint has_alpha_background : 1;
guint destroyed : 2;
guint accept_focus : 1;
guint focus_on_map : 1;
guint support_multidevice : 1;
- guint synthesize_crossing_event_queued : 1;
guint viewable : 1; /* mapped and all parents mapped */
guint in_update : 1;
guint frame_clock_events_paused : 1;
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index cc6eab44fb..b2cdc558be 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -227,7 +227,6 @@ gdk_surface_init (GdkSurface *surface)
surface->fullscreen_mode = GDK_FULLSCREEN_ON_CURRENT_MONITOR;
surface->width = 1;
surface->height = 1;
- surface->toplevel_surface_type = -1;
surface->children_list_node.data = surface;
surface->device_cursor = g_hash_table_new_full (NULL, NULL,
diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c
index 5fa66dd8d9..1156653e9d 100644
--- a/gdk/win32/gdksurface-win32.c
+++ b/gdk/win32/gdksurface-win32.c
@@ -190,7 +190,6 @@ gdk_surface_impl_win32_init (GdkSurfaceImplWin32 *impl)
{
GdkDisplay *display = gdk_display_get_default ();
- impl->toplevel_surface_type = -1;
impl->hicon_big = NULL;
impl->hicon_small = NULL;
impl->hint_flags = 0;
diff --git a/gdk/win32/gdksurface-win32.h b/gdk/win32/gdksurface-win32.h
index d99fdd0fcb..1d22ade85f 100644
--- a/gdk/win32/gdksurface-win32.h
+++ b/gdk/win32/gdksurface-win32.h
@@ -230,8 +230,6 @@ struct _GdkSurfaceImplWin32
GdkSurface *wrapper;
HANDLE handle;
- gint8 toplevel_surface_type;
-
HICON hicon_big;
HICON hicon_small;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]