From 8df7f88b6697931908d2d11c51ade84325be1b51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Sun, 26 Nov 2017 13:15:53 +0000 Subject: [PATCH] GDK W32: Remove an unnecessary type check No idea why it's here, the hash table can store any kind of data, there's no reason why it wouldn't be able to store an old X string type. Might be a holdout from the old days, when strings were handled in a special way (stored directly in the clipboard?). https://bugzilla.gnome.org/show_bug.cgi?id=786509 --- gdk/win32/gdkselection-win32.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gdk/win32/gdkselection-win32.c b/gdk/win32/gdkselection-win32.c index a9c8d77209..12ee4ef2ac 100644 --- a/gdk/win32/gdkselection-win32.c +++ b/gdk/win32/gdkselection-win32.c @@ -757,8 +757,6 @@ selection_property_store (GdkWindow *owner, GdkSelProp *prop; GdkWin32Selection *win32_sel = _gdk_win32_selection_get (); - g_return_if_fail (type != GDK_TARGET_STRING); - prop = g_hash_table_lookup (win32_sel->sel_prop_table, GDK_WINDOW_HWND (owner)); if (prop != NULL)