diff --git a/layouts.c b/layouts.c index 4f03823..9b8e49d 100644 --- a/layouts.c +++ b/layouts.c @@ -885,7 +885,6 @@ hgrid(Monitor *m) { } } -#if LAYOUT_CUSTOM enum node_type_t { ndNULL, @@ -1682,4 +1681,3 @@ set_s_layout(const Arg *arg) token_root = token; } } -#endif diff --git a/signal.h b/signal.h index 5b49de1..35d6c0a 100644 --- a/signal.h +++ b/signal.h @@ -18,10 +18,8 @@ static Signal signals[] = { { 11, setlayout, {.v = &layouts[10]} }, /* Horizontal Bottom Stack layout */ { 12, setlayout, {.v = &layouts[11]} }, /* Horizontal Grid layout */ { 13, setlayout, {.v = &layouts[12]} }, /* Dynamic Grid layout */ -#if LAYOUT_CUSTOM { 14, setlayout, {.v = &layouts[13]} }, /* Custom layout */ { 15, set_s_layout, {.v = &layouts[13]} }, -#endif { 16, cyclelayout, {.i = +1 } }, { 17, cyclelayout, {.i = -1 } }, { 18, setmfact, {.f = +0.05} }, diff --git a/speedwm.c b/speedwm.c index adc133c..c5fa721 100644 --- a/speedwm.c +++ b/speedwm.c @@ -641,10 +641,8 @@ static void tile(Monitor *m); static void empty(Monitor *m); static void hgrid(Monitor *m); static void ngrid(Monitor *m); -#if LAYOUT_CUSTOM static void custom(Monitor *m); static void set_s_layout(const Arg *arg); -#endif /* bar items */ static void togglebar(const Arg *arg); diff --git a/text.h b/text.h index 8aa83e4..4a66c5d 100644 --- a/text.h +++ b/text.h @@ -53,9 +53,8 @@ static Layout layouts[] = { /* Dynamic Grid */ { text_layout13, tile, { -1, -1, nosplit, dynamicgrid, dynamicgrid, 0, NULL } }, /* Custom */ -#if LAYOUT_CUSTOM { text_layout14, custom, {0} }, -#endif + /* Empty */ { text_layout15, empty, {0} }, /* Reset to layout 1 */ { NULL, NULL, {0} }, diff --git a/toggle.h b/toggle.h index 572bc1d..4cc602c 100644 --- a/toggle.h +++ b/toggle.h @@ -34,8 +34,3 @@ Not compatible with BSDs so for those, set this to 0. */ #define USEIMLIB2 1 /* Whether or not to include imlib2. Required by USEWINICON and USETAGPREVIEW. */ #define USEWINICON 1 /* Whether or not to include window icons. Requires imlib to be enabled in toggle.mk and it must be installed. */ #define USETAGPREVIEW 1 /* Whether or not to include tag previews. Requires imlib to be enabled in toggle.mk and it must be installed. */ - -/* Layouts - * If you don't use a layout, you can remove it to keep the speedwm binary small. - */ -#define LAYOUT_CUSTOM 1 /* Whether or not to include the custom layout */