aboutsummaryrefslogtreecommitdiffstats
path: root/fm.c
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-07-27 20:36:26 +0800
committerverdant <im@verdant.ee>2026-07-27 20:36:26 +0800
commit19dbf0d0c12940ce1456ef9a251430ecbb66b9fe (patch)
treeed7d1eb81e85cc1592e79ce786cfc1e3744e34b2 /fm.c
parent030ae43352ee5a9adfc62d4d7da72c7de9e073d1 (diff)
downloadsf-19dbf0d0c12940ce1456ef9a251430ecbb66b9fe.tar.gz
sf-19dbf0d0c12940ce1456ef9a251430ecbb66b9fe.zip
Remove unused function: fm_print
Diffstat (limited to 'fm.c')
-rw-r--r--fm.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/fm.c b/fm.c
index a395de9..c7a6ff1 100644
--- a/fm.c
+++ b/fm.c
@@ -40,14 +40,10 @@ void magic_cleanup(void)
static fm_info *fm_w_init(terminal *term);
static void fm_file_list_init(file_list *l, int cap);
static void fm_file_items_realloc(file_list *l);
-/* static void get_next_dir(fm_info *f); */
static char *detect_file_type(const char *filepath);
bool fm_preview_file(window *w, const char *path);
-/* static void fm_print_preview_content(window *w, const char *path); */
-/* static void fm_calc_scroll(int maxy, int entries_count, ) */
/* Functions */
-
static fm_info *fm_w_init(terminal *term)
{
@@ -200,15 +196,6 @@ bool fm_preview_file(window *w, const char *path)
return true;
}
-static void fm_print(window *win, const char *name, int y, int print_width,
- int color_pair)
-{
-
- wattron(win->win, COLOR_PAIR(color_pair));
- mvwprintw(win->win, y, 0, "%-*.*s", print_width, print_width, name);
- wattroff(win->win, COLOR_PAIR(color_pair));
-}
-
void fm_draw_entries(window *window, file_list *list, size_t cursor, int top,
int bottom)
{