[gnome-books/wip/hadess/more-dead-code-cleanup: 4/4] lib: Make gd_filename_get_extension_offset() private
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-books/wip/hadess/more-dead-code-cleanup: 4/4] lib: Make gd_filename_get_extension_offset() private
- Date: Mon, 28 Jan 2019 13:18:41 +0000 (UTC)
commit 0d366f822d8912ca7642845147f20965416aabe7
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jan 28 13:29:31 2019 +0100
lib: Make gd_filename_get_extension_offset() private
It's only used from within gd_filename_strip_extension().
src/lib/gd-utils.c | 2 +-
src/lib/gd-utils.h | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/lib/gd-utils.c b/src/lib/gd-utils.c
index 201888dd..d19b1435 100644
--- a/src/lib/gd-utils.c
+++ b/src/lib/gd-utils.c
@@ -105,7 +105,7 @@ gd_queue_thumbnail_job_for_file_finish (GAsyncResult *res, GError **error)
return g_task_propagate_boolean (task, error);
}
-const char *
+static const char *
gd_filename_get_extension_offset (const char *filename)
{
char *end, *end2;
diff --git a/src/lib/gd-utils.h b/src/lib/gd-utils.h
index 536a3b9f..481f606d 100644
--- a/src/lib/gd-utils.h
+++ b/src/lib/gd-utils.h
@@ -31,8 +31,6 @@ void gd_queue_thumbnail_job_for_file_async (GFile *file,
gboolean gd_queue_thumbnail_job_for_file_finish (GAsyncResult *res, GError **error);
-const char *gd_filename_get_extension_offset (const char *filename);
-
char *gd_filename_strip_extension (const char * filename_with_extension);
gchar *gd_iso8601_from_timestamp (gint64 timestamp);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]