commit 7c5b3f1c22a11e435d1132769f88002755889800
parent 8d0917ab4410bb66f0ccaf2fb16139cc503d55af
Author: Jonathan Boeing <jonathan@claws-mail.org>
Date: Sat, 6 Nov 2021 23:23:24 -0700
Fix -Wunused-function-warnings
Diffstat:
3 files changed, 2 insertions(+), 46 deletions(-)
diff --git a/src/addressbook.c b/src/addressbook.c
@@ -393,11 +393,6 @@ static GtkTargetEntry addressbook_drag_types[] =
static GtkTargetList *addressbook_target_list = NULL;
-static void about_show_cb(GtkAction *action, gpointer data)
-{
- about_show();
-}
-
static GtkActionEntry addressbook_entries[] =
{
{"Menu", NULL, "Menu", NULL, NULL, NULL },
diff --git a/src/plugins/litehtml_viewer/lh_viewer.c b/src/plugins/litehtml_viewer/lh_viewer.c
@@ -43,44 +43,6 @@ static GtkWidget *lh_get_widget(MimeViewer *_viewer)
return viewer->vbox;
}
-static gchar *get_utf8_string(const gchar *string) {
- gchar *utf8 = NULL;
- gsize length;
- GError *error = NULL;
- gchar *locale = NULL;
-
- if (!g_utf8_validate(string, -1, NULL)) {
- const gchar *cur_locale = conv_get_current_locale();
- gchar* split = g_strstr_len(cur_locale, -1, ".");
- if (split) {
- locale = ++split;
- } else {
- locale = (gchar *) cur_locale;
- }
- debug_print("Try converting to UTF-8 from %s\n", locale);
- if (g_ascii_strcasecmp("utf-8", locale) != 0) {
- utf8 = g_convert(string, -1, "utf-8", locale, NULL, &length, &error);
- if (error) {
- debug_print("Failed convertion to current locale: %s\n", error->message);
- g_clear_error(&error);
- }
- }
- if (!utf8) {
- debug_print("Use iso-8859-1 as last resort\n");
- utf8 = g_convert(string, -1, "utf-8", "iso-8859-1", NULL, &length, &error);
- if (error) {
- debug_print("Charset detection failed. Use text as is\n");
- utf8 = g_strdup(string);
- g_clear_error(&error);
- }
- }
- } else {
- utf8 = g_strdup(string);
- }
-
- return utf8;
-}
-
static void lh_show_mimepart(MimeViewer *_viewer, const gchar *infile,
MimeInfo *partinfo)
{
@@ -132,6 +94,7 @@ static void lh_destroy_viewer(MimeViewer *_viewer)
g_free(viewer);
}
+/*
static void lh_print_viewer (MimeViewer *_viewer)
{
debug_print("LH: print_viewer\n");
@@ -139,7 +102,7 @@ static void lh_print_viewer (MimeViewer *_viewer)
LHViewer* viewer = (LHViewer *) _viewer;
lh_widget_print(viewer->widget);
}
-
+*/
static gboolean lh_scroll_page(MimeViewer *_viewer, gboolean up)
{
diff --git a/src/plugins/pgpinline/pgpinline.c b/src/plugins/pgpinline/pgpinline.c
@@ -62,8 +62,6 @@ typedef struct _PGPInlineTaskData
static PrivacySystem pgpinline_system;
-static gint pgpinline_check_signature(MimeInfo *mimeinfo);
-
static PrivacyDataPGP *pgpinline_new_privacydata()
{
PrivacyDataPGP *data;