[nautilus/wip/csoriano/destktop-split2: 14/33] 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: 14/33] files-view: remove unused get_icon_locations vfunc
- Date: Tue, 22 Mar 2016 16:36:20 +0000 (UTC)
commit d53aa9cc4d1d27c1213a684d6855e2a8ac8b9a2c
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 073ba29..59fe241 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)
{
@@ -1898,7 +1888,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 43b5151..af6efec 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -7536,13 +7536,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,
@@ -8006,7 +7999,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]