summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorРуслан Ижбулатов <lrn1986@gmail.com>2017-11-26 13:15:53 +0000
committerРуслан Ижбулатов <lrn1986@gmail.com>2017-12-02 10:38:42 +0000
commitae76d1966360675940078f9d63730c929f4c63c4 (patch)
treefa8ad5c046eb1ab0fe2e544d730374bd66ed34ba /gdk
parentc89c19d2f982331c035a479ac5ffc2900f5aa71a (diff)
downloadgtk+-ae76d1966360675940078f9d63730c929f4c63c4.tar.gz
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
Diffstat (limited to 'gdk')
-rw-r--r--gdk/win32/gdkselection-win32.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdk/win32/gdkselection-win32.c b/gdk/win32/gdkselection-win32.c
index 64f5a53fef..d793f739c7 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)