summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2016-03-18 14:08:13 +0100
committerCarlos Soriano <csoriano@gnome.org>2016-04-14 10:35:15 +0200
commitf93021ce0764ab3f19ebc1143a46e84ea9832124 (patch)
tree43c0e581d5c5e62233a592c4a05c3eaa4f7ff9d7
parent043391c833af1e413de17bd1d687b2a24ccab50a (diff)
downloadnautilus-f93021ce0764ab3f19ebc1143a46e84ea9832124.tar.gz
files-view: remove unused is_read_only vfunc
https://bugzilla.gnome.org/show_bug.cgi?id=712620
-rw-r--r--src/nautilus-files-view.c13
-rw-r--r--src/nautilus-files-view.h8
2 files changed, 3 insertions, 18 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 92e426e58..7ca5b617c 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -326,6 +326,8 @@ static void set_search_query_internal (NautilusFilesVie
NautilusQuery *query,
NautilusDirectory *base_model);
+static gboolean nautilus_files_view_is_read_only (NautilusFilesView *view);
+
G_DEFINE_TYPE_WITH_CODE (NautilusFilesView,
nautilus_files_view,
GTK_TYPE_GRID,
@@ -665,14 +667,6 @@ nautilus_files_view_get_view_widget (NautilusView *view)
}
static gboolean
-nautilus_files_view_is_read_only (NautilusFilesView *view)
-{
- g_return_val_if_fail (NAUTILUS_IS_FILES_VIEW (view), FALSE);
-
- return NAUTILUS_FILES_VIEW_CLASS (G_OBJECT_GET_CLASS (view))->is_read_only (view);
-}
-
-static gboolean
showing_trash_directory (NautilusFilesView *view)
{
NautilusFile *file;
@@ -7367,7 +7361,7 @@ nautilus_files_view_is_editable (NautilusFilesView *view)
}
static gboolean
-real_is_read_only (NautilusFilesView *view)
+nautilus_files_view_is_read_only (NautilusFilesView *view)
{
NautilusFile *file;
@@ -8012,7 +8006,6 @@ nautilus_files_view_class_init (NautilusFilesViewClass *klass)
G_TYPE_NONE, 0);
klass->get_selected_icon_locations = real_get_selected_icon_locations;
- klass->is_read_only = real_is_read_only;
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 f55dcf9a4..3944d5c80 100644
--- a/src/nautilus-files-view.h
+++ b/src/nautilus-files-view.h
@@ -225,14 +225,6 @@ struct NautilusFilesViewClass {
* view's lifecycle. */
gboolean (* using_manual_layout) (NautilusFilesView *view);
- /* is_read_only is a function pointer that subclasses may
- * override to control whether or not the user is allowed to
- * change the contents of the currently viewed directory. The
- * default implementation checks the permissions of the
- * directory.
- */
- gboolean (* is_read_only) (NautilusFilesView *view);
-
/* is_empty is a function pointer that subclasses must
* override to report whether the view contains any items.
*/