Drop unused parameter from save_default_layout_options_to_file()
authorArkadiy Illarionov <[email protected]>
Mon, 24 Mar 2025 21:17:11 +0000 (00:17 +0300)
committerColin Clark <[email protected]>
Tue, 25 Mar 2025 09:56:08 +0000 (09:56 +0000)
src/preferences.cc
src/rcfile.cc
src/rcfile.h

index f4296112896a3986fa9a4307855727af2ccbba6b..5ee5713dde7022136a06b34974d6991eccee9542 100644 (file)
@@ -2292,7 +2292,7 @@ static void save_default_window_layout_cb(GtkWidget *, gpointer)
        lw->options.id = g_strdup("");
 
        g_autofree gchar *default_path = g_build_filename(get_rc_dir(), DEFAULT_WINDOW_LAYOUT, NULL);
-       save_default_layout_options_to_file(default_path, options, lw);
+       save_default_layout_options_to_file(default_path, lw);
        g_free(lw->options.id);
        lw->options.id = tmp_id;
 }
index 23cd363df9b8acfcc46d2a6d6bf06183dd23a615..c38aa66dea91c433ab6247d6e52ec70928fb5a90 100644 (file)
@@ -838,7 +838,7 @@ gboolean save_config_to_file(const gchar *utf8_path, ConfOptions *options, Layou
        return TRUE;
 }
 
-gboolean save_default_layout_options_to_file(const gchar *utf8_path, ConfOptions *, LayoutWindow *lw)
+gboolean save_default_layout_options_to_file(const gchar *utf8_path, LayoutWindow *lw)
 {
        SecureSaveInfo *ssi;
        gint indent = 0;
index e5f8d382f8ad592bb68d346b2d991533726ce6e4..306c14c603a2f18834cecb21949596f25e839271 100644 (file)
@@ -85,7 +85,7 @@ gboolean read_bool_option(const gchar *option, const gchar *label, const gchar *
 
 
 gboolean save_config_to_file(const gchar *utf8_path, ConfOptions *options, LayoutWindow *lw);
-gboolean save_default_layout_options_to_file(const gchar *utf8_path, ConfOptions *options, LayoutWindow *lw);
+gboolean save_default_layout_options_to_file(const gchar *utf8_path, LayoutWindow *lw);
 
 gboolean load_config_from_buf(const gchar *buf, gsize size, gboolean startup);
 gboolean load_config_from_file(const gchar *utf8_path, gboolean startup);