From 26964588e13a98e931b84ae6ae139c9a7c3814a0 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Tue, 8 Jun 2021 23:04:19 +0200 Subject: [PATCH] [Config] Remove old unused options. --- config/config.c | 5 ----- include/settings.h | 5 ----- source/xrmoptions.c | 6 ------ 3 files changed, 16 deletions(-) diff --git a/config/config.c b/config/config.c index b5f40d2e..a11b3056 100644 --- a/config/config.c +++ b/config/config.c @@ -127,15 +127,10 @@ Settings config = { .monitor = "-5", /** Set filter */ .filter = NULL, - /** Separator style: dash/solid */ - .separator_style = "dash", - /** Hide scrollbar */ - .hide_scrollbar = FALSE, .fake_transparency = FALSE, .dpi = -1, .threads = 0, .scroll_method = 0, - .scrollbar_width = 8, .fake_background = "screenshot", .window_format = "{w} {c} {t}", .click_to_exit = TRUE, diff --git a/include/settings.h b/include/settings.h index d70359b5..f37ed9e6 100644 --- a/include/settings.h +++ b/include/settings.h @@ -146,10 +146,6 @@ typedef struct char *monitor; /** filter */ char *filter; - /** style */ - char *separator_style; - /** hide scrollbar */ - unsigned int hide_scrollbar; /** bg image */ unsigned int fake_transparency; /** dpi */ @@ -157,7 +153,6 @@ typedef struct /** Number threads (1 to disable) */ unsigned int threads; unsigned int scroll_method; - unsigned int scrollbar_width; /** Background type */ char *fake_background; diff --git a/source/xrmoptions.c b/source/xrmoptions.c index fcacc69b..0e89c003 100644 --- a/source/xrmoptions.c +++ b/source/xrmoptions.c @@ -170,18 +170,12 @@ static XrmOption xrmOptions[] = { "Monitor id to show on", CONFIG_DEFAULT }, { xrm_String, "filter", { .str = &config.filter }, NULL, "Pre-set filter", CONFIG_DEFAULT }, - { xrm_String, "separator-style", { .str = &config.separator_style }, NULL, - "Separator style (none, dash, solid) *DEPRECATED*", CONFIG_DEFAULT }, - { xrm_Boolean, "hide-scrollbar", { .num = &config.hide_scrollbar }, NULL, - "Hide scroll-bar *DEPRECATED*", CONFIG_DEFAULT }, { xrm_Boolean, "fake-transparency", { .num = &config.fake_transparency }, NULL, "Fake transparency *DEPRECATED*", CONFIG_DEFAULT }, { xrm_SNumber, "dpi", { .snum = &config.dpi }, NULL, "DPI", CONFIG_DEFAULT }, { xrm_Number, "threads", { .num = &config.threads }, NULL, "Threads to use for string matching", CONFIG_DEFAULT }, - { xrm_Number, "scrollbar-width", { .num = &config.scrollbar_width }, NULL, - "Scrollbar width *DEPRECATED*", CONFIG_DEFAULT }, { xrm_Number, "scroll-method", { .num = &config.scroll_method }, NULL, "Scrolling method. (0: Page, 1: Centered)", CONFIG_DEFAULT }, { xrm_String, "fake-background", { .str = &config.fake_background }, NULL,