summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-11-10 17:31:28 +0300
committermonsta <[email protected]>2016-11-10 17:31:28 +0300
commita5d2bd2c5e86ea58fed2419face5a9efb0994b17 (patch)
treecf9b02f24c4072437ab3e4118ad5bae14a3ec049 /src
parent7008129b5a16ceceafc3dd5868a8317b35561768 (diff)
downloadcaja-a5d2bd2c5e86ea58fed2419face5a9efb0994b17.tar.bz2
caja-a5d2bd2c5e86ea58fed2419face5a9efb0994b17.tar.xz
application: remove unused function
same as done upstream: https://git.gnome.org/browse/nautilus/commit/?id=41da60c3a7156e504f7cf89cea87be49ef75a89c it's not used after 7008129b5a16ceceafc3dd5868a8317b35561768
Diffstat (limited to 'src')
-rw-r--r--src/caja-application.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/src/caja-application.c b/src/caja-application.c
index cd7595fe..b0ef0e42 100644
--- a/src/caja-application.c
+++ b/src/caja-application.c
@@ -765,63 +765,6 @@ automount_all_volumes_idle_cb (gpointer data)
}
static void
-mark_desktop_files_trusted (void)
-{
- char *do_once_file;
- GFile *f, *c;
- GFileEnumerator *e;
- GFileInfo *info;
- const char *name;
- int fd;
-
- do_once_file = g_build_filename (g_get_user_data_dir (),
- ".converted-launchers", NULL);
-
- if (g_file_test (do_once_file, G_FILE_TEST_EXISTS))
- {
- goto out;
- }
-
- f = caja_get_desktop_location ();
- e = g_file_enumerate_children (f,
- G_FILE_ATTRIBUTE_STANDARD_TYPE ","
- G_FILE_ATTRIBUTE_STANDARD_NAME ","
- G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE
- ,
- G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
- NULL, NULL);
- if (e == NULL)
- {
- goto out2;
- }
-
- while ((info = g_file_enumerator_next_file (e, NULL, NULL)) != NULL)
- {
- name = g_file_info_get_name (info);
-
- if (g_str_has_suffix (name, ".desktop") &&
- !g_file_info_get_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE))
- {
- c = g_file_get_child (f, name);
- caja_file_mark_desktop_file_trusted (c,
- NULL, FALSE,
- NULL, NULL);
- g_object_unref (c);
- }
- g_object_unref (info);
- }
-
- g_object_unref (e);
-out2:
- fd = g_creat (do_once_file, 0666);
- close (fd);
-
- g_object_unref (f);
-out:
- g_free (do_once_file);
-}
-
-static void
check_volume_queue (CajaApplication *application)
{
GList *l, *next;