[gtk/wip/otte/win32-cleanup: 14/19] win32: Remove unused code
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/win32-cleanup: 14/19] win32: Remove unused code
- Date: Sat, 31 Jul 2021 01:55:23 +0000 (UTC)
commit 020dbb7b4cdb842ed579e4c4d297678c223c5451
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 1b92e85efa..13d33f4bd7 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 de4ed1f054..18be1c8dee 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]