talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 6ff340cb7ec7cfb1dd2761b8d72acb3b39e479e5
parent 025449b5e95eefee5a5b2cc905118315af2a2848
Author: Ricardo Mones <ricardo@mones.org>
Date:   Sun,  5 Jun 2022 18:46:20 +0200

Remove more unused macros

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

diff --git 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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -69,8 +69,6 @@ #include <gtk/gtk.h> #include <dirent.h> -#define VCAL_FOLDERITEM(item) ((VCalFolderItem *) item) - #ifdef USE_PTHREAD #include <pthread.h> #endif