[Commits] [SCM] claws branch, master, updated. 4.1.0-36-g6ff340cb7

mones at claws-mail.org mones at claws-mail.org
Sun Jun 5 16:48:09 UTC 2022


The branch, master has been updated
       via  6ff340cb7ec7cfb1dd2761b8d72acb3b39e479e5 (commit)
      from  025449b5e95eefee5a5b2cc905118315af2a2848 (commit)

Summary of changes:
 src/mainwindow.c                                         | 8 +++-----
 src/plugins/mailmbox/mailmbox.c                          | 2 --
 src/plugins/newmail/newmail.c                            | 1 -
 src/plugins/notification/gtkhotkey/x11/eggaccelerators.c | 2 --
 src/plugins/pdf_viewer/poppler_viewer.c                  | 2 --
 src/plugins/pgpcore/select-keys.c                        | 4 +---
 src/plugins/vcalendar/vcal_folder.c                      | 2 --
 7 files changed, 4 insertions(+), 17 deletions(-)


- Log -----------------------------------------------------------------
commit 6ff340cb7ec7cfb1dd2761b8d72acb3b39e479e5
Author: Ricardo Mones <ricardo at mones.org>
Date:   Sun Jun 5 18:46:20 2022 +0200

    Remove more unused macros

diff --git a/src/mainwindow.c b/src/mainwindow.c
index 99cca4b7b..566127558 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -102,8 +102,6 @@
 #include "w32_reg.h"
 #endif
 
-#define AC_LABEL_WIDTH	240
-
 /* list of all instantiated MainWindow */
 static GList *mainwin_list = NULL;
 
@@ -457,13 +455,13 @@ static gint mailing_list_create_submenu(MainWindow *mainwindow,
 				       MsgInfo *msginfo);
 
 static gint mailing_list_populate_submenu(GtkWidget *menu, const gchar * list_header);
-	
+
 static void get_url_part(const gchar **buf, gchar *url_decoded);
 
 static void mailing_list_compose(GtkWidget *w, gpointer *data);
- 
+
 static void mailing_list_open_uri(GtkWidget *w, gpointer *data);
-#define  SEPARATE_ACTION 500 
+
 static void mainwindow_quicksearch		(GtkAction	*action,
 				  gpointer	 data);
 static gboolean any_folder_want_synchronise(void);
diff --git a/src/plugins/mailmbox/mailmbox.c b/src/plugins/mailmbox/mailmbox.c
index f8e5cc528..66b025ef2 100644
--- a/src/plugins/mailmbox/mailmbox.c
+++ b/src/plugins/mailmbox/mailmbox.c
@@ -65,8 +65,6 @@
   RFC 2076
 */
 
-#define TMPDIR "/tmp"
-
 /* mbox is a file with a corresponding filename */
 
 #define UID_HEADER "X-LibEtPan-UID:"
diff --git a/src/plugins/newmail/newmail.c b/src/plugins/newmail/newmail.c
index 049260924..d50a42a98 100644
--- a/src/plugins/newmail/newmail.c
+++ b/src/plugins/newmail/newmail.c
@@ -36,7 +36,6 @@
 
 #define LOG_NAME	"NewLog"
 #define DEFAULT_DIR	"Mail"
-#define BUFSIZE		2048
 
 static gulong hook_id = HOOK_NONE;
 
diff --git a/src/plugins/notification/gtkhotkey/x11/eggaccelerators.c b/src/plugins/notification/gtkhotkey/x11/eggaccelerators.c
index d3616b2d1..206d9d941 100644
--- a/src/plugins/notification/gtkhotkey/x11/eggaccelerators.c
+++ b/src/plugins/notification/gtkhotkey/x11/eggaccelerators.c
@@ -39,8 +39,6 @@ enum
   EGG_MODMAP_ENTRY_LAST    = 8
 };
 
-#define MODMAP_ENTRY_TO_MODIFIER(x) (1 << (x))
-
 typedef struct
 {
   EggVirtualModifierType mapping[EGG_MODMAP_ENTRY_LAST];
diff --git a/src/plugins/pdf_viewer/poppler_viewer.c b/src/plugins/pdf_viewer/poppler_viewer.c
index 10c068b03..939722650 100644
--- a/src/plugins/pdf_viewer/poppler_viewer.c
+++ b/src/plugins/pdf_viewer/poppler_viewer.c
@@ -1641,7 +1641,6 @@ static void pdf_viewer_scroll_one_line(MimeViewer *_viewer, gboolean up)
 
 }
 
-#define BUTTON_H_PADDING 3
 #define ADD_BUTTON_TO_GRID(widget, stock_image) \
 	widget = gtk_button_new(); \
 	img = stock_pixmap_widget(stock_image); \
@@ -2105,7 +2104,6 @@ static MimeViewer *pdf_viewer_create(void)
 #undef ADD_BUTTON_TO_GRID
 #undef ADD_TOGGLE_BUTTON_TO_GRID
 #undef ADD_SEP_TO_GRID
-#undef BUTTON_H_PADDING
 #undef SEP_H_PADDING
 
 static MimeViewerFactory pdf_viewer_factory =
diff --git a/src/plugins/pgpcore/select-keys.c b/src/plugins/pgpcore/select-keys.c
index 8d5d57c59..8dd9f8df5 100644
--- a/src/plugins/pgpcore/select-keys.c
+++ b/src/plugins/pgpcore/select-keys.c
@@ -35,10 +35,8 @@
 #include "alertpanel.h"
 
 #define DIM(v) (sizeof(v)/sizeof((v)[0]))
-#define DIMof(type,member)   DIM(((type *)0)->member)
 
-
-enum col_titles { 
+enum col_titles {
     COL_ALGO,
     COL_KEYID,
     COL_NAME,
diff --git a/src/plugins/vcalendar/vcal_folder.c b/src/plugins/vcalendar/vcal_folder.c
index 9c8d4a5af..3c37a6464 100644
--- a/src/plugins/vcalendar/vcal_folder.c
+++ b/src/plugins/vcalendar/vcal_folder.c
@@ -69,8 +69,6 @@
 #include <gtk/gtk.h>
 #include <dirent.h>
 
-#define VCAL_FOLDERITEM(item) ((VCalFolderItem *) item)
-
 #ifdef USE_PTHREAD
 #include <pthread.h>
 #endif

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list