summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-file-operations.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private/caja-file-operations.c')
-rw-r--r--libcaja-private/caja-file-operations.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/libcaja-private/caja-file-operations.c b/libcaja-private/caja-file-operations.c
index b77bdd7d..b0c15cdb 100644
--- a/libcaja-private/caja-file-operations.c
+++ b/libcaja-private/caja-file-operations.c
@@ -124,7 +124,6 @@ typedef struct {
gpointer done_callback_data;
} CreateJob;
-
typedef struct {
CommonJob common;
GList *trash_dirs;
@@ -242,7 +241,6 @@ static void scan_sources (GList *files,
CommonJob *job,
OpKind kind);
-
static gboolean empty_trash_job (GIOSchedulerJob *io_job,
GCancellable *cancellable,
gpointer user_data);
@@ -466,7 +464,6 @@ get_link_name (const char *name, int count, int max_length)
return result;
}
-
/* Translators:
* Feel free to leave out the st, nd, rd and th suffix or
* make some or all of them match.
@@ -588,7 +585,6 @@ parse_previous_duplicate_name (const char *name,
return;
}
-
tag = strstr (name, ANOTHER_COPY_DUPLICATE_TAG);
if (tag != NULL) {
if (tag > *suffix) {
@@ -600,7 +596,6 @@ parse_previous_duplicate_name (const char *name,
return;
}
-
/* Check to see if we got one of st, nd, rd, th. */
tag = strstr (name, X11TH_COPY_DUPLICATE_TAG);
@@ -647,7 +642,6 @@ parse_previous_duplicate_name (const char *name,
}
}
-
*count = 0;
if (**suffix != '\0') {
*name_base = extract_string_until (name, *suffix);
@@ -796,7 +790,6 @@ has_invalid_xml_char (char *str)
return FALSE;
}
-
static char *
custom_full_name_to_string (char *format, va_list va)
{
@@ -858,7 +851,6 @@ custom_basename_to_string (char *format, va_list va)
g_free (tmp);
}
-
return name;
}
@@ -868,7 +860,6 @@ custom_basename_skip (va_list *va)
(void) va_arg (*va, GFile *);
}
-
static char *
custom_size_to_string (char *format, va_list va)
{
@@ -918,7 +909,6 @@ custom_mount_skip (va_list *va)
(void) va_arg (*va, GMount *);
}
-
static EelPrintfHandler handlers[] = {
{ 'F', custom_full_name_to_string, custom_full_name_skip },
{ 'B', custom_basename_to_string, custom_basename_skip },
@@ -928,7 +918,6 @@ static EelPrintfHandler handlers[] = {
{ 0 }
};
-
static char *
f (const char *format, ...) {
va_list va;
@@ -1854,7 +1843,6 @@ report_trash_progress (CommonJob *job,
}
}
-
static void
trash_files (CommonJob *job, GList *files, int *files_skipped)
{
@@ -2129,8 +2117,6 @@ caja_file_operations_delete (GList *files,
done_callback, done_callback_data);
}
-
-
typedef struct {
gboolean eject;
GMount *mount;
@@ -2242,7 +2228,6 @@ dir_has_files (GFile *dir)
g_object_unref (enumerator);
}
-
return res;
}
@@ -2312,7 +2297,6 @@ has_trash_files (GMount *mount)
return res;
}
-
static gint
prompt_empty_trash (GtkWindow *parent_window)
{
@@ -2487,7 +2471,6 @@ volume_mount_cb (GObject *source_object,
g_object_unref (mount_op);
}
-
void
caja_file_operations_mount_volume (GtkWindow *parent_window,
GVolume *volume,
@@ -4168,7 +4151,6 @@ copy_move_file (CopyMoveJob *copy_job,
dest = get_target_file (src, dest_dir, *dest_fs_type, same_fs);
}
-
/* Don't allow recursive move/copy into itself.
* (We would get a file system error if we proceeded but it is nicer to
* detect and report it at this level) */
@@ -4236,7 +4218,6 @@ copy_move_file (CopyMoveJob *copy_job,
goto out;
}
-
retry:
error = NULL;
flags = G_FILE_COPY_NOFOLLOW_SYMLINKS;
@@ -4589,7 +4570,6 @@ copy_files (CopyMoveJob *job,
point = NULL;
}
-
same_fs = FALSE;
if (dest_fs_id) {
same_fs = has_fs_id (src, dest_fs_id);
@@ -4861,7 +4841,6 @@ move_file_prepare (CopyMoveJob *move_job,
dest = get_target_file (src, dest_dir, *dest_fs_type, same_fs);
-
/* Don't allow recursive move/copy into itself.
* (We would get a file system error if we proceeded but it is nicer to
* detect and report it at this level) */
@@ -5093,7 +5072,6 @@ move_files_prepare (CopyMoveJob *job,
point = NULL;
}
-
same_fs = FALSE;
if (dest_fs_id) {
same_fs = has_fs_id (src, dest_fs_id);
@@ -5111,7 +5089,6 @@ move_files_prepare (CopyMoveJob *job,
*fallbacks = g_list_reverse (*fallbacks);
-
}
static void
@@ -5168,7 +5145,6 @@ move_files (CopyMoveJob *job,
}
}
-
static gboolean
move_job_done (gpointer user_data)
{
@@ -5362,7 +5338,6 @@ get_abs_path_for_symlink (GFile *file)
return abs;
}
-
static void
link_file (CopyMoveJob *job,
GFile *src, GFile *dest_dir,
@@ -5572,7 +5547,6 @@ link_job (GIOSchedulerJob *io_job,
point = NULL;
}
-
link_file (job, src, job->destination,
&dest_fs_type, job->debuting_files,
point, left);
@@ -5633,7 +5607,6 @@ caja_file_operations_link (GList *files,
job->common.cancellable);
}
-
void
caja_file_operations_duplicate (GList *files,
GArray *relative_item_points,
@@ -5731,7 +5704,6 @@ set_permissions_file (SetPermissionsJob *job,
mask = job->file_mask;
}
-
if (!job_aborted (common) &&
g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_UNIX_MODE)) {
current = g_file_info_get_attribute_uint32 (info, G_FILE_ATTRIBUTE_UNIX_MODE);
@@ -5776,7 +5748,6 @@ set_permissions_file (SetPermissionsJob *job,
}
}
-
static gboolean
set_permissions_job (GIOSchedulerJob *io_job,
GCancellable *cancellable,
@@ -5803,8 +5774,6 @@ set_permissions_job (GIOSchedulerJob *io_job,
return FALSE;
}
-
-
void
caja_file_set_permissions_recursive (const char *directory,
guint32 file_permissions,
@@ -6396,8 +6365,6 @@ caja_file_operations_new_file (GtkWidget *parent_view,
job->common.cancellable);
}
-
-
static void
delete_trash_file (CommonJob *job,
GFile *file,
@@ -6572,7 +6539,6 @@ mark_desktop_file_trusted (CommonJob *common,
response = 0;
}
-
if (response == 0 || response == GTK_RESPONSE_DELETE_EVENT) {
abort_job (common);
} else if (response == 1) {
@@ -6659,7 +6625,6 @@ mark_desktop_file_trusted (CommonJob *common,
goto out;
}
-
if (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_UNIX_MODE)) {
current_perms = g_file_info_get_attribute_uint32 (info, G_FILE_ATTRIBUTE_UNIX_MODE);
new_perms = current_perms | S_IXGRP | S_IXUSR | S_IXOTH;
@@ -6760,7 +6725,6 @@ caja_self_check_file_operations (void)
{
setlocale (LC_MESSAGES, "C");
-
/* test the next duplicate name generator */
EEL_CHECK_STRING_RESULT (get_duplicate_name (" (copy)", 1, -1), " (another copy)");
EEL_CHECK_STRING_RESULT (get_duplicate_name ("foo", 1, -1), "foo (copy)");