gdk: Remove unused flags

This commit is contained in:
Benjamin Otte 2020-07-30 04:46:09 +02:00
parent b12b06e917
commit ebcef256ab
3 changed files with 0 additions and 14 deletions

View File

@ -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

View File

@ -624,8 +624,6 @@ _gdk_macos_surface_set_geometry_hints (GdkMacosSurface *self,
g_return_if_fail (self->window != NULL);
if (geom_mask & GDK_HINT_POS) { /* TODO */ }
if (geom_mask & GDK_HINT_USER_POS) { /* TODO */ }
if (geom_mask & GDK_HINT_USER_SIZE) { /* TODO */ }
if (geom_mask & GDK_HINT_MAX_SIZE)
max_size = NSMakeSize (geometry->max_width, geometry->max_height);

View File

@ -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;