[file-roller/wip/jtojnar/engrampa-backports: 12/24] gio-utils: Remove unused functions $ cppcheck --enable=unusedFunction . [src/gio-utils.c:1091]: (sty
- From: Jan Tojnar <jtojnar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller/wip/jtojnar/engrampa-backports: 12/24] gio-utils: Remove unused functions $ cppcheck --enable=unusedFunction . [src/gio-utils.c:1091]: (sty
- Date: Wed, 27 Jul 2022 19:54:32 +0000 (UTC)
commit 72ddbaa1551f8c63e73e8116025d676bca0e1469
Author: rbuj <robert buj gmail com>
Date: Thu Sep 12 12:38:59 2019 +0200
gio-utils: Remove unused functions
$ cppcheck --enable=unusedFunction .
[src/gio-utils.c:1091]: (style) The function 'g_copy_uri_async' is never used.
[src/gio-utils.c:1060]: (style) The function 'g_copy_uris_async' is never used.
Cherry picked from
https://github.com/mate-desktop/engrampa/commit/17c124a61edff83334b7776aa82ffa17f3c5aa9d
src/gio-utils.c | 63 ---------------------------------------------------------
src/gio-utils.h | 18 -----------------
2 files changed, 81 deletions(-)
---
diff --git a/src/gio-utils.c b/src/gio-utils.c
index 10b762bd..858c1215 100644
--- a/src/gio-utils.c
+++ b/src/gio-utils.c
@@ -905,69 +905,6 @@ g_copy_file_async (GFile *source,
}
-void
-g_copy_uris_async (GList *sources,
- GList *destinations,
- GFileCopyFlags flags,
- int io_priority,
- GCancellable *cancellable,
- CopyProgressCallback progress_callback,
- gpointer progress_callback_data,
- CopyDoneCallback callback,
- gpointer user_data)
-{
- GList *source_files, *destination_files;
-
- source_files = _g_file_list_new_from_uri_list (sources);
- destination_files = _g_file_list_new_from_uri_list (destinations);
-
- g_copy_files_async (source_files,
- destination_files,
- flags,
- io_priority,
- cancellable,
- progress_callback,
- progress_callback_data,
- callback,
- user_data);
-
- _g_file_list_free (source_files);
- _g_file_list_free (destination_files);
-}
-
-
-void
-g_copy_uri_async (const char *source,
- const char *destination,
- GFileCopyFlags flags,
- int io_priority,
- GCancellable *cancellable,
- CopyProgressCallback progress_callback,
- gpointer progress_callback_data,
- CopyDoneCallback callback,
- gpointer user_data)
-{
- GList *source_list;
- GList *destination_list;
-
- source_list = g_list_append (NULL, (gpointer)source);
- destination_list = g_list_append (NULL, (gpointer)destination);
-
- g_copy_uris_async (source_list,
- destination_list,
- flags,
- io_priority,
- cancellable,
- progress_callback,
- progress_callback_data,
- callback,
- user_data);
-
- g_list_free (source_list);
- g_list_free (destination_list);
-}
-
-
/* -- g_directory_copy_async -- */
diff --git a/src/gio-utils.h b/src/gio-utils.h
index 0d7dd3cb..4f5ebb8e 100644
--- a/src/gio-utils.h
+++ b/src/gio-utils.h
@@ -127,15 +127,6 @@ void g_copy_files_async (GList *sources,
gpointer progress_callback_data,
CopyDoneCallback callback,
gpointer user_data);
-void g_copy_uris_async (GList *sources,
- GList *destinations,
- GFileCopyFlags flags,
- int io_priority,
- GCancellable *cancellable,
- CopyProgressCallback progress_callback,
- gpointer progress_callback_data,
- CopyDoneCallback callback,
- gpointer user_data);
void g_copy_file_async (GFile *source,
GFile *destination,
GFileCopyFlags flags,
@@ -145,15 +136,6 @@ void g_copy_file_async (GFile *source,
gpointer progress_callback_data,
CopyDoneCallback callback,
gpointer user_data);
-void g_copy_uri_async (const char *source,
- const char *destination,
- GFileCopyFlags flags,
- int io_priority,
- GCancellable *cancellable,
- CopyProgressCallback progress_callback,
- gpointer progress_callback_data,
- CopyDoneCallback callback,
- gpointer user_data);
void g_directory_copy_async (GFile *source,
GFile *destination,
GFileCopyFlags flags,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]