[nautilus] window: Remove unused DND code
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] window: Remove unused DND code
- Date: Sat, 2 Jul 2022 17:27:52 +0000 (UTC)
commit cc1b56a7a5e584e7e9032c3ea48895975892b3c8
Author: Corey Berla <corey berla me>
Date: Tue May 17 10:39:03 2022 -0700
window: Remove unused DND code
src/nautilus-window.c | 22 ----------------------
src/nautilus-window.h | 6 ------
2 files changed, 28 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 180343d59..3dfa5157d 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -963,28 +963,6 @@ build_selection_list_from_gfile_list (GList *gfile_list)
return g_list_reverse (result);
}
-void
-nautilus_window_start_dnd (NautilusWindow *window,
- GdkDragContext *context)
-{
- g_return_if_fail (NAUTILUS_IS_WINDOW (window));
-
- nautilus_gtk_places_sidebar_set_drop_targets_visible (NAUTILUS_GTK_PLACES_SIDEBAR
(window->places_sidebar),
- TRUE,
- context);
-}
-
-void
-nautilus_window_end_dnd (NautilusWindow *window,
- GdkDragContext *context)
-{
- g_return_if_fail (NAUTILUS_IS_WINDOW (window));
-
- nautilus_gtk_places_sidebar_set_drop_targets_visible (NAUTILUS_GTK_PLACES_SIDEBAR
(window->places_sidebar),
- FALSE,
- context);
-}
-
/* Callback used when the places sidebar needs to know the drag action to suggest */
static GdkDragAction
places_sidebar_drag_action_requested_cb (NautilusGtkPlacesSidebar *sidebar,
diff --git a/src/nautilus-window.h b/src/nautilus-window.h
index 72fc5d987..ed8d6585e 100644
--- a/src/nautilus-window.h
+++ b/src/nautilus-window.h
@@ -97,12 +97,6 @@ void nautilus_window_sync_title (NautilusWindow *window,
void nautilus_window_show_operation_notification (NautilusWindow *window,
gchar *main_label,
GFile *folder_to_open);
-#if 0 && NAUTILUS_DND_NEEDS_GTK4_REIMPLEMENTATION
-void nautilus_window_start_dnd (NautilusWindow *window,
- GdkDragContext *context);
-void nautilus_window_end_dnd (NautilusWindow *window,
- GdkDragContext *context);
-#endif
void nautilus_window_search (NautilusWindow *window,
NautilusQuery *query);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]