[file-roller: 4/123] removed unused code



commit e7dec00e9a93f43c2aac96dec09317ad0d82a385
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Jul 17 19:58:02 2012 +0200

    removed unused code

 src/fr-command.c |  116 +-----------------------------------------------------
 1 files changed, 1 insertions(+), 115 deletions(-)
---
diff --git a/src/fr-command.c b/src/fr-command.c
index 621498a..dbca513 100644
--- a/src/fr-command.c
+++ b/src/fr-command.c
@@ -512,121 +512,7 @@ fr_command_handle_process_error (FrCommand     *self,
 }
 
 
-/* -- command signals -- */
-
-
-#if 0
-
-
-static void
-process_start_cb (FrProcess *process,
-		  gpointer   user_data)
-{
-	FrCommand *self = user_data;
-	FrArchive *archive = FR_ARCHIVE (self);
-
-	fr_archive_action_started (archive, archive->action);
-}
-
-
-static void
-process_done_cb (FrProcess *process,
-		 FrError   *error,
-		 gpointer   user_data)
-{
-	FrCommand *self = user_data;
-	FrArchive *archive = FR_ARCHIVE (self);
-
-        process->restart = FALSE;
-        if (error->type != FR_ERROR_STOPPED)
-                fr_command_handle_error (self, error);
-
-        if (process->restart) {
-                fr_process_start (process);
-                return;
-        }
-
-	switch (archive->action) {
-	case FR_ACTION_DELETING_FILES:
-		if (error->type == FR_ERROR_NONE) {
-			if (! g_file_has_uri_scheme (fr_archive_get_file (archive), "file")) {
-				copy_archive_to_remote_location (self, action);
-				return;
-			}
-		}
-		break;
-
-	case FR_ACTION_ADDING_FILES:
-		if (error->type == FR_ERROR_NONE) {
-			fr_archive_remove_temp_work_dir (archive);
-			if (self->priv->continue_adding_dropped_items) {
-				add_dropped_items (self->priv->dropped_items_data);
-				return;
-			}
-			if (self->priv->dropped_items_data != NULL) {
-				dropped_items_data_free (self->priv->dropped_items_data);
-				self->priv->dropped_items_data = NULL;
-			}
-			/* the name of the volumes are different from the
-			 * original name */
-			if (archive->multi_volume)
-				fr_archive_change_name (archive, self->filename);
-			if (! g_file_has_uri_scheme (fr_archive_get_file (archive), "file")) {
-				copy_archive_to_remote_location (self, action);
-				return;
-			}
-		}
-		break;
-
-	case FR_ACTION_EXTRACTING_FILES:
-		if (error->type == FR_ERROR_NONE) {
-			if (self->priv->remote_extraction) {
-				copy_extracted_files_to_destination (archive);
-				return;
-			}
-			else if (archive->extract_here)
-				move_here (self);
-		}
-		else {
-			/* if an error occurred during extraction remove the
-			 * temp extraction dir, if used. */
-			g_print ("action_performed: ERROR!\n");
-
-			if ((self->priv->remote_extraction) && (self->priv->temp_extraction_dir != NULL)) {
-				_g_path_remove_directory (self->priv->temp_extraction_dir);
-				g_free (self->priv->temp_extraction_dir);
-				self->priv->temp_extraction_dir = NULL;
-			}
-
-			if (archive->extract_here)
-				_g_uri_remove_directory (fr_archive_get_last_extraction_destination (archive));
-		}
-		break;
-
-	case FR_ACTION_LISTING_CONTENT:
-                /* order the list by name to speed up search */
-                g_ptr_array_sort (archive->files, file_data_compare_by_path);
-
-		/* the name of the volumes are different from the
-		 * original name */
-		if (archive->multi_volume)
-			fr_archive_change_name (archive, self->filename);
-		fr_archive_update_capabilities (archive);
-		break;
-
-	default:
-		/* nothing */
-		break;
-	}
-
-        g_signal_emit_by_name (self,
-        		       "done",
-        		       archive->action,
-        		       error);
-}
-
-
-#endif
+/* -- _fr_command_set_process -- */
 
 
 static gboolean



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]