[file-roller/bug-588547] removed debug instructions



commit d89fd64206be77a80f4c540b93a70e959486bb7e
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Jul 17 11:13:03 2009 +0200

    removed debug instructions

 src/fr-command-7z.c |   30 +++---------------------------
 1 files changed, 3 insertions(+), 27 deletions(-)
---
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
index 8fd6acd..c953b0c 100644
--- a/src/fr-command-7z.c
+++ b/src/fr-command-7z.c
@@ -464,24 +464,18 @@ static void
 fr_command_7z_handle_error (FrCommand   *comm,
 			    FrProcError *error)
 {
-g_print ("[1]\n");
 	if (error->type == FR_PROC_ERROR_NONE) {
 		FileData *first;
 		char     *basename;
 		char     *testname;
 
-g_print ("[2]\n");
-
 		/* This is a way to fix bug #582712. */
 
-		if (comm->files->len != 1) {
-g_print ("[2-1]\n");
+		if (comm->files->len != 1) 
 			return;
-		}
-		if (! g_str_has_suffix (comm->filename, ".001")) {
-g_print ("[2-2]\n");
+		
+		if (! g_str_has_suffix (comm->filename, ".001")) 
 			return;
-		}
 
 		first = g_ptr_array_index (comm->files, 0);
 		basename = g_path_get_basename (comm->filename);
@@ -493,44 +487,26 @@ g_print ("[2-2]\n");
 		g_free (testname);
 		g_free (basename);
 
-g_print ("[2-3]\n");
-
 		return;
 	}
 
-g_print ("[3] [%d] [%d]\n", error->type, error->status);
-
-	/*if (error->type != FR_PROC_ERROR_COMMAND_ERROR)
-		return;*/
-
-g_print ("[4]\n");
-
 	if (error->status <= 1) {
-
-g_print ("[5]\n");
-
 		error->type = FR_PROC_ERROR_NONE;
 	}
 	else {
 		GList *scan;
 
-g_print ("[6]\n");
-
 		for (scan = g_list_last (comm->process->out.raw); scan; scan = scan->prev) {
 			char *line = scan->data;
 
 			if ((strstr (line, "Wrong password?") != NULL)
 			    || (strstr (line, "Enter password") != NULL))
 			{
-
-g_print ("[7]\n");
 				error->type = FR_PROC_ERROR_ASK_PASSWORD;
 				break;
 			}
 		}
 	}
-g_print ("[8]\n");
-
 }
 
 



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