From 513bf031a589d9e2a1a2730adf56f95e5e316a06 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Wed, 14 Oct 2026 17:17:43 +0300 Subject: Remove unused private functions and inline trivial helpers --- src/core.h | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src/core.h') diff --git a/src/core.h b/src/core.h index aab2cde..823a57d 100644 --- a/src/core.h +++ b/src/core.h @@ -117,15 +117,6 @@ static inline void sc_move(struct term *t, int x, int y) /* Advance cursor by n tab stops. */ void term_sc_tab(struct term *t, int n); -/* Move cursor back one column. */ -static inline void sc_bs(struct term *t) -{ - t->pending_wrap = false; - if (t->cursor_x > 0) - t->cursor_x--; - term_row(t, t->cursor_y)->version++; -} - /* Erase cells in span [from, to) on physical row y. */ static inline void sc_erase_span(struct term *t, int y, int from, int to) { @@ -136,12 +127,6 @@ static inline void sc_erase_span(struct term *t, int y, int from, int to) t->scr.slot[p].version++; } -/* Scroll margins: top to bottom, n lines up or down. */ -void term_sc_scroll_region(struct term *t, int top, int bottom, int n, bool down); - -/* Scroll the active scroll region up or down by n lines (with history). */ -void term_sc_scroll(struct term *t, int n, bool down); - /* Restore saved cursor state and position. */ static inline void sc_restore_cursor(struct term *t, const struct term_saved_cursor *s) { @@ -159,12 +144,6 @@ void term_sc_decaln(struct term *t); /* Reset screen and cursor state for full reset (RIS). */ void term_sc_reset(struct term *t); -/* Set reverse video mode (DECSCNM). */ -void term_sc_set_reverse_video(struct term *t, bool enabled); - -/* Set autowrap mode (DECAWM). */ -void term_sc_set_autowrap(struct term *t, bool enabled); - /* Set cursor style (DECSCUSR). */ void term_sc_set_cursor_style(struct term *t, int ps); -- cgit v1.2.3