From 6c55334ad9b03006686e2db6c6f6167677a2f510 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 27 Oct 2021 17:40:17 +0200 Subject: Use a blank line at most --- src/fr-command-7z.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/fr-command-7z.c') diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c index 796e03a..8bf85a0 100644 --- a/src/fr-command-7z.c +++ b/src/fr-command-7z.c @@ -49,10 +49,8 @@ static gboolean password_handled = FALSE; static FrCommandClass *parent_class = NULL; - /* -- list -- */ - static time_t mktime_from_string (char *date_s, char *time_s) @@ -88,7 +86,6 @@ mktime_from_string (char *date_s, return mktime (&tm); } - static void list__process_line (char *line, gpointer data) @@ -204,7 +201,6 @@ list__process_line (char *line, g_strfreev (fields); } - static void fr_command_7z_begin_command (FrCommand *comm) { @@ -216,7 +212,6 @@ fr_command_7z_begin_command (FrCommand *comm) fr_process_begin_command (comm->process, "7zr"); } - static void add_password_arg (FrCommand *comm, const char *password, @@ -232,7 +227,6 @@ add_password_arg (FrCommand *comm, } } - static void list__begin (gpointer data) { @@ -245,7 +239,6 @@ list__begin (gpointer data) p7z_comm->list_started = FALSE; } - static void fr_command_7z_list (FrCommand *comm) { @@ -267,7 +260,6 @@ fr_command_7z_list (FrCommand *comm) fr_process_start (comm->process); } - static void parse_progress_line (FrCommand *comm, const char *prefix, @@ -281,7 +273,6 @@ parse_progress_line (FrCommand *comm, fr_command_progress (comm, (double) ++comm->n_file / (comm->n_files + 1)); } - static void process_line__add (char *line, gpointer data) @@ -307,7 +298,6 @@ process_line__add (char *line, parse_progress_line (comm, "Compressing ", _("Adding file: "), line); } - static void fr_command_7z_add (FrCommand *comm, const char *from_file, @@ -403,7 +393,6 @@ fr_command_7z_add (FrCommand *comm, fr_process_end_command (comm->process); } - static void fr_command_7z_delete (FrCommand *comm, const char *from_file, @@ -442,7 +431,6 @@ fr_command_7z_delete (FrCommand *comm, fr_process_end_command (comm->process); } - static void process_line__extract (char *line, gpointer data) @@ -453,7 +441,6 @@ process_line__extract (char *line, parse_progress_line (comm, "Extracting ", _("Extracting file: "), line); } - static void fr_command_7z_extract (FrCommand *comm, const char *from_file, @@ -507,7 +494,6 @@ fr_command_7z_extract (FrCommand *comm, fr_process_end_command (comm->process); } - static void fr_command_7z_test (FrCommand *comm) { @@ -521,7 +507,6 @@ fr_command_7z_test (FrCommand *comm) fr_process_end_command (comm->process); } - static void fr_command_7z_handle_error (FrCommand *comm, FrProcError *error) @@ -577,7 +562,6 @@ fr_command_7z_handle_error (FrCommand *comm, } } - const char *sevenz_mime_types[] = { "application/epub+zip", "application/x-7z-compressed", "application/x-arj", @@ -591,7 +575,6 @@ const char *sevenz_mime_types[] = { "application/epub+zip", "application/zip", /* zip always at the end and the number of */ NULL }; /* place in fr_command_7z_get_mime_types */ - static const char ** fr_command_7z_get_mime_types (FrCommand *comm) { @@ -609,7 +592,6 @@ fr_command_7z_get_mime_types (FrCommand *comm) return sevenz_mime_types; } - static FrCommandCap fr_command_7z_get_capabilities (FrCommand *comm, const char *mime_type, @@ -668,7 +650,6 @@ fr_command_7z_get_capabilities (FrCommand *comm, return capabilities; } - static const char * fr_command_7z_get_packages (FrCommand *comm, const char *mime_type) @@ -681,7 +662,6 @@ fr_command_7z_get_packages (FrCommand *comm, return PACKAGES ("p7zip"); } - static void fr_command_7z_class_init (FrCommand7zClass *class) { @@ -704,7 +684,6 @@ fr_command_7z_class_init (FrCommand7zClass *class) afc->get_packages = fr_command_7z_get_packages; } - static void fr_command_7z_init (FrCommand *comm) { @@ -719,7 +698,6 @@ fr_command_7z_init (FrCommand *comm) comm->propListFromFile = TRUE; } - static void fr_command_7z_finalize (GObject *object) { @@ -731,7 +709,6 @@ fr_command_7z_finalize (GObject *object) G_OBJECT_CLASS (parent_class)->finalize (object); } - GType fr_command_7z_get_type () { -- cgit v1.2.1