From 36065d3bf3cb13cda2051b1a5aa7ff925e4f3ff9 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sat, 14 May 2022 00:13:03 +0200 Subject: [PATCH] Do not store unused signal handle --- zathura/file-monitor.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/zathura/file-monitor.c b/zathura/file-monitor.c index e9c37fb..aaf3e25 100644 --- a/zathura/file-monitor.c +++ b/zathura/file-monitor.c @@ -21,13 +21,6 @@ enum { PROP_FILE_PATH }; -enum { - RELOAD_FILE, - LAST_SIGNAL -}; - -static guint signals[LAST_SIGNAL] = { 0 }; - static void finalize(GObject* object) { @@ -94,9 +87,8 @@ zathura_filemonitor_class_init(ZathuraFileMonitorClass* class) G_PARAM_STATIC_STRINGS)); /* add signals */ - signals[RELOAD_FILE] = - g_signal_new("reload-file", ZATHURA_TYPE_FILEMONITOR, G_SIGNAL_RUN_LAST, 0, - NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 0); + g_signal_new("reload-file", ZATHURA_TYPE_FILEMONITOR, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_generic, + G_TYPE_NONE, 0); } static void