[gtk/wip/otte/win32-cleanup] win32: Remove unused code



commit 7eaa3f8c6b1fff094a73ef2502c1d675ef94c14d
Author: Benjamin Otte <otte redhat com>
Date:   Wed Jul 28 03:45:35 2021 +0200

    win32: Remove unused code

 gdk/win32/gdkdrag-win32.c | 2 --
 gdk/win32/gdkdrop-win32.c | 5 -----
 2 files changed, 7 deletions(-)
---
diff --git a/gdk/win32/gdkdrag-win32.c b/gdk/win32/gdkdrag-win32.c
index bcffd65cc1..5acef40c98 100644
--- a/gdk/win32/gdkdrag-win32.c
+++ b/gdk/win32/gdkdrag-win32.c
@@ -237,7 +237,6 @@ typedef struct
   /* Cached here, so that we don't have to look in
    * the context every time.
    */
-  HWND                            source_window_handle;
   guint                           scale;
 
   /* We get this from the OS via IDropSourceNotify and pass it to the
@@ -1604,7 +1603,6 @@ source_context_new (GdkDrag           *drag,
   result->ids.lpVtbl = &ids_vtbl;
   result->idsn.lpVtbl = &idsn_vtbl;
   result->ref_count = 1;
-  result->source_window_handle = GDK_SURFACE_HWND (surface);
   result->scale = drag_win32->scale;
   result->util_data.state = GDK_WIN32_DND_PENDING; /* Implicit */
   result->dest_window_handle = INVALID_HANDLE_VALUE;
diff --git a/gdk/win32/gdkdrop-win32.c b/gdk/win32/gdkdrop-win32.c
index cf75961a02..ca086df3c4 100644
--- a/gdk/win32/gdkdrop-win32.c
+++ b/gdk/win32/gdkdrop-win32.c
@@ -1139,11 +1139,6 @@ _gdk_win32_surface_register_dnd (GdkSurface *window)
 
   g_return_if_fail (window != NULL);
 
-  if (g_object_get_data (G_OBJECT (window), "gdk-dnd-registered") != NULL)
-    return;
-  else
-    g_object_set_data (G_OBJECT (window), "gdk-dnd-registered", GINT_TO_POINTER (TRUE));
-
   GDK_NOTE (DND, g_print ("gdk_win32_surface_register_dnd: %p\n", GDK_SURFACE_HWND (window)));
 
   if (!use_ole2_dnd)


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