[gtk/wip/otte/geometry: 2/4] gdk: Remove unused flags




commit bdcb724fb44e83c1d7844fc657acbd459e606660
Author: Benjamin Otte <otte redhat com>
Date:   Thu Jul 30 04:46:09 2020 +0200

    gdk: Remove unused flags

 gdk/gdkinternals.h       |  2 --
 gdk/x11/gdksurface-x11.c | 10 ----------
 2 files changed, 12 deletions(-)
---
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index a208e9c568..e241403e5d 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -301,8 +301,6 @@ typedef enum
   GDK_HINT_MAX_SIZE    = 1 << 2,
   GDK_HINT_ASPECT      = 1 << 4,
   GDK_HINT_WIN_GRAVITY = 1 << 6,
-  GDK_HINT_USER_POS    = 1 << 7,
-  GDK_HINT_USER_SIZE   = 1 << 8
 } GdkSurfaceHints;
 
 typedef enum
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c
index bccdbc3df7..f316872d57 100644
--- a/gdk/x11/gdksurface-x11.c
+++ b/gdk/x11/gdksurface-x11.c
@@ -2161,16 +2161,6 @@ gdk_x11_surface_set_geometry_hints (GdkSurface         *surface,
       size_hints.y = 0;
     }
 
-  if (geom_mask & GDK_HINT_USER_POS)
-    {
-      size_hints.flags |= USPosition;
-    }
-
-  if (geom_mask & GDK_HINT_USER_SIZE)
-    {
-      size_hints.flags |= USSize;
-    }
-  
   if (geom_mask & GDK_HINT_MIN_SIZE)
     {
       size_hints.flags |= PMinSize;


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