commit a3855d22a9bad0ea9792d92277193a00702b669b
parent 5c606d419912680015c8c4ab1d78e895e32233fe
Author: Oliver Lowe <o@olowe.co>
Date: Sat, 30 Aug 2025 16:43:33 +1000
tidy up removed partial download leftovers
Diffstat:
4 files changed, 7 insertions(+), 50 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
@@ -175,7 +175,6 @@ claws_mailinclude_HEADERS = \
news.h \
noticeview.h \
oauth2.h \
- partial_download.h \
password.h \
passwordstore.h \
pop.h \
diff --git a/src/partial_download.h b/src/partial_download.h
@@ -1,44 +0,0 @@
-/*
- * Claws Mail -- a GTK based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2012 Colin Leroy <colin@colino.net>
- * and the Claws Mail team
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-#ifndef __PARTIAL_DOWNLOAD_H__
-#define __PARTIAL_DOWNLOAD_H__
-
-#ifdef HAVE_CONFIG_H
-#include "claws-features.h"
-#endif
-
-#include <glib.h>
-#include <time.h>
-
-#include "procmsg.h"
-
-typedef enum {
- POP3_PARTIAL_DLOAD_UNKN = 0,
- POP3_PARTIAL_DLOAD_DLOAD= 1,
- POP3_PARTIAL_DLOAD_DELE = 2
-} PartialDownloadAction;
-
-typedef enum {
- POP3_TOTALLY_RECEIVED = 0,
- POP3_PARTIALLY_RECEIVED = 1,
- POP3_MUST_COMPLETE_RECV = 2
-} PartialDownloadStatus;
-
-#endif /* __PARTIAL_DOWNLOAD_H__ */
diff --git a/src/pop.c b/src/pop.c
@@ -32,7 +32,6 @@
#include <errno.h>
#include "pop.h"
-#include "partial_download.h"
#include "prefs_account.h"
#include "utils.h"
#include "log.h"
@@ -44,6 +43,12 @@
#include "defs.h"
#endif
+typedef enum {
+ POP3_TOTALLY_RECEIVED = 0,
+ POP3_PARTIALLY_RECEIVED = 1,
+ POP3_MUST_COMPLETE_RECV = 2
+} PartialDownloadStatus;
+
static gint pop3_greeting_recv (Pop3Session *session,
const gchar *msg);
static gint pop3_getauth_user_send (Pop3Session *session);
diff --git a/src/prefs_customheader.c b/src/prefs_customheader.c
@@ -541,7 +541,6 @@ static void prefs_custom_header_val_from_file_cb(void)
{
gchar *filename = NULL;
gchar *contents = NULL;
- const gchar *hdr = gtk_entry_get_text(GTK_ENTRY(customhdr.hdr_entry));
filename = filesel_select_file_open(_("Choose a text file"), NULL);
if (!filename)
@@ -554,7 +553,7 @@ static void prefs_custom_header_val_from_file_cb(void)
g_free(filename);
return;
}
-settext:
+
if (contents && strlen(contents))
gtk_entry_set_text(GTK_ENTRY(customhdr.val_entry), contents);
@@ -761,8 +760,6 @@ static gboolean prefs_custom_header_selected(GtkTreeSelection *selector,
{
GtkTreeIter iter;
CustomHeader *ch;
- GtkImage *preview;
- GdkPixbuf *pixbuf;
CustomHeader default_ch = { 0, "", NULL };
if (currently_selected)