[nautilus/wip/csoriano/destktop-split2: 11/47] files-view: remove unused get_icon_locations vfunc
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/csoriano/destktop-split2: 11/47] files-view: remove unused get_icon_locations vfunc
- Date: Wed, 30 Mar 2016 19:58:59 +0000 (UTC)
commit c3218497e76327c9ad6cdbd341e017ad18a0868d
Author: Carlos Soriano <csoriano gnome org>
Date: Fri Mar 18 14:13:39 2016 +0100
files-view: remove unused get_icon_locations vfunc
src/nautilus-canvas-view.c | 11 -----------
src/nautilus-files-view.c | 8 --------
src/nautilus-files-view.h | 3 ---
3 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/src/nautilus-canvas-view.c b/src/nautilus-canvas-view.c
index 76b9da4..23e2e7a 100644
--- a/src/nautilus-canvas-view.c
+++ b/src/nautilus-canvas-view.c
@@ -1185,16 +1185,6 @@ nautilus_canvas_view_compute_rename_popover_relative_to (NautilusFilesView *view
return bounding_box;
}
-static GArray *
-nautilus_canvas_view_get_selected_icon_locations (NautilusFilesView *view)
-{
- g_return_val_if_fail (NAUTILUS_IS_CANVAS_VIEW (view), NULL);
-
- return nautilus_canvas_container_get_selected_icon_locations
- (get_canvas_container (NAUTILUS_CANVAS_VIEW (view)));
-}
-
-
static void
nautilus_canvas_view_set_selection (NautilusFilesView *view, GList *selection)
{
@@ -1899,7 +1889,6 @@ nautilus_canvas_view_class_init (NautilusCanvasViewClass *klass)
nautilus_files_view_class->clear = nautilus_canvas_view_clear;
nautilus_files_view_class->end_loading = nautilus_canvas_view_end_loading;
nautilus_files_view_class->file_changed = nautilus_canvas_view_file_changed;
- nautilus_files_view_class->get_selected_icon_locations =
nautilus_canvas_view_get_selected_icon_locations;
nautilus_files_view_class->compute_rename_popover_relative_to =
nautilus_canvas_view_compute_rename_popover_relative_to;
nautilus_files_view_class->get_selection = nautilus_canvas_view_get_selection;
nautilus_files_view_class->get_selection_for_file_transfer = nautilus_canvas_view_get_selection;
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 7ca5b61..a550a34 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -7535,13 +7535,6 @@ nautilus_files_view_stop_batching_selection_changes (NautilusFilesView *view)
}
}
-static GArray *
-real_get_selected_icon_locations (NautilusFilesView *view)
-{
- /* By default, just return an empty list. */
- return g_array_new (FALSE, TRUE, sizeof (GdkPoint));
-}
-
static void
nautilus_files_view_get_property (GObject *object,
guint prop_id,
@@ -8005,7 +7998,6 @@ nautilus_files_view_class_init (NautilusFilesViewClass *klass)
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
- klass->get_selected_icon_locations = real_get_selected_icon_locations;
klass->get_backing_uri = real_get_backing_uri;
klass->using_manual_layout = real_using_manual_layout;
klass->get_window = nautilus_files_view_get_window;
diff --git a/src/nautilus-files-view.h b/src/nautilus-files-view.h
index cd7af4c..7316b4f 100644
--- a/src/nautilus-files-view.h
+++ b/src/nautilus-files-view.h
@@ -175,9 +175,6 @@ struct NautilusFilesViewClass {
void (* invert_selection) (NautilusFilesView *view);
- /* Return an array of locations of selected icons in their view. */
- GArray * (* get_selected_icon_locations) (NautilusFilesView *view);
-
/* bump_zoom_level is a function pointer that subclasses must override
* to change the zoom level of an object. */
void (* bump_zoom_level) (NautilusFilesView *view,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]