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/osc/dispatch.c | 12 +----------- src/osc/osc.h | 3 --- 2 files changed, 1 insertion(+), 14 deletions(-) (limited to 'src/osc') diff --git a/src/osc/dispatch.c b/src/osc/dispatch.c index 74863ed..400adbf 100644 --- a/src/osc/dispatch.c +++ b/src/osc/dispatch.c @@ -20,16 +20,6 @@ char *term_osc_tail(struct term *t) return (t->osc_heap ? t->osc_heap : t->osc_buf) + t->osc_len; } -void term_osc_commit(struct term *t, size_t n) -{ - t->osc_len += (int)n; -} - -char *term_osc_data(struct term *t) -{ - return t->osc_heap ? t->osc_heap : t->osc_buf; -} - bool term_osc_grow(struct term *t) { if (!t->osc_heap) { @@ -151,7 +141,7 @@ static void osc104_handle(struct term *t, const char *params) void term_osc_finish(struct term *t) { if (!term_str_was_truncated(t)) { - char *buf = term_osc_data(t); + char *buf = t->osc_heap ? t->osc_heap : t->osc_buf; buf[t->osc_len] = '\0'; if (!t->alternate && t->osc_len >= 5 && !strncmp(buf, "133;", 4) && diff --git a/src/osc/osc.h b/src/osc/osc.h index 1398534..1d6680e 100644 --- a/src/osc/osc.h +++ b/src/osc/osc.h @@ -11,11 +11,8 @@ struct term; size_t term_osc_room(const struct term *t); char *term_osc_tail(struct term *t); -void term_osc_commit(struct term *t, size_t n); bool term_osc_grow(struct term *t); -char *term_osc_data(struct term *t); - void term_osc_finish(struct term *t); void term_osc_cleanup(struct term *t); -- cgit v1.2.3