[gtk/gdk-internal-cleanup: 1/3] win32: Drop vestigial surface type hint field




commit 79c2c3e353ff757ffd67c0ffc367a31b46ca55c5
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Aug 13 21:36:44 2020 -0400

    win32: Drop vestigial surface type hint field
    
    This wasn't used in any way.

 gdk/win32/gdksurface-win32.c | 5 ++---
 gdk/win32/gdksurface-win32.h | 2 --
 2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c
index a559cb3271..4078635148 100644
--- a/gdk/win32/gdksurface-win32.c
+++ b/gdk/win32/gdksurface-win32.c
@@ -140,7 +140,6 @@ gdk_win32_surface_init (GdkWin32Surface *impl)
   impl->hicon_big = NULL;
   impl->hicon_small = NULL;
   impl->hint_flags = 0;
-  impl->type_hint = GDK_SURFACE_TYPE_HINT_NORMAL;
   impl->transient_owner = NULL;
   impl->transient_children = NULL;
   impl->num_transients = 0;
@@ -332,7 +331,7 @@ get_default_title (void)
  *   get its own class
  */
 static ATOM
-RegisterGdkClass (GdkSurfaceType wtype, GdkSurfaceTypeHint wtype_hint)
+RegisterGdkClass (GdkSurfaceType wtype)
 {
   static ATOM klassTOPLEVEL   = 0;
   static ATOM klassTEMP       = 0;
@@ -613,7 +612,7 @@ _gdk_win32_display_create_surface (GdkDisplay     *display,
    * under the mouse cursor, this will kill any DND.
    */
 
-  klass = RegisterGdkClass (surface_type, impl->type_hint);
+  klass = RegisterGdkClass (surface_type);
 
   wtitle = g_utf8_to_utf16 (title, -1, NULL, NULL, NULL);
 
diff --git a/gdk/win32/gdksurface-win32.h b/gdk/win32/gdksurface-win32.h
index 1f54b7b070..603401f856 100644
--- a/gdk/win32/gdksurface-win32.h
+++ b/gdk/win32/gdksurface-win32.h
@@ -256,8 +256,6 @@ struct _GdkWin32Surface
    */
   GdkDrop             *drop;
 
-  GdkSurfaceTypeHint type_hint;
-
   GdkSurface *transient_owner;
   GSList    *transient_children;
   int        num_transients;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]