aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-07-28 17:35:36 +0800
committerverdant <im@verdant.ee>2026-07-28 17:35:36 +0800
commit6b17425741ab5ff0a4007d9d832f06006e976782 (patch)
tree6022964d21f9faa8f2c3567bd76b9c9005a91875
parent7918003c7669e1fe2beb9e9a5bc0d67524f57b92 (diff)
downloadsf-6b17425741ab5ff0a4007d9d832f06006e976782.tar.gz
sf-6b17425741ab5ff0a4007d9d832f06006e976782.zip
Remove unused macro definations and functions
-rw-r--r--display.c20
-rw-r--r--display.h6
2 files changed, 0 insertions, 26 deletions
diff --git a/display.c b/display.c
index 49c3797..13c19c0 100644
--- a/display.c
+++ b/display.c
@@ -10,12 +10,8 @@
void
color_pair_init(void)
{
- init_pair(COLOR_PAIR_STATUS_BAR, COLOR_BLACK, COLOR_WHITE);
- init_pair(COLOR_PAIR_PROGRESS, COLOR_YELLOW, COLOR_BLUE);
- init_pair(COLOR_PAIR_TEXT_INFO, COLOR_WHITE, COLOR_BLUE);
init_pair(COLOR_PAIR_FM_HL, COLOR_BLACK, COLOR_WHITE);
init_pair(COLOR_PAIR_FM_DIR, COLOR_CYAN, COLOR_BLACK);
- init_pair(COLOR_PAIR_BORDER, COLOR_WHITE, COLOR_BLUE);
}
terminal *
@@ -37,22 +33,6 @@ ncurses_init(void)
}
void
-draw_stat_bar(terminal *t, const char *sys_version)
-{
- window *stat_bar =
- wm_create_new_w(t, "stat_bar", 1, t->maxx, t->maxy - 1, 0);
- if (!stat_bar || !stat_bar->win)
- return;
- wattron(stat_bar->win, COLOR_PAIR(COLOR_PAIR_STATUS_BAR));
- mvwprintw(stat_bar->win, 0, 0, "%*s", t->maxx, "");
- mvwprintw(stat_bar->win, 0, 0, "SF v%s | %s", PROGRAM_VERSION,
- sys_version);
- wattroff(stat_bar->win, COLOR_PAIR(COLOR_PAIR_STATUS_BAR));
-
- wrefresh(stat_bar->win);
-}
-
-void
wprintw_colorful(WINDOW *w, int attr, const char *format, ...)
{
va_list ap;
diff --git a/display.h b/display.h
index 37f900a..f8cae8c 100644
--- a/display.h
+++ b/display.h
@@ -8,12 +8,6 @@
#include "log.h"
#include "mem.h"
-#define COLOR_PAIR_STATUS_BAR 1
-#define COLOR_PAIR_PROGRESS 2
-#define COLOR_PAIR_TEXT_INFO 3
-#define COLOR_PAIR_FM_HL 4
-#define COLOR_PAIR_FM_DIR 5
-#define COLOR_PAIR_BORDER 6
#define STAT_INFO_WIDTH 15
#define BAR_LABEL_WIDTH 7