diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-14 17:17:43 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-14 17:17:43 +0300 |
| commit | 513bf031a589d9e2a1a2730adf56f95e5e316a06 (patch) | |
| tree | 66ef6b095e6aa00c790ac37705fb9df3b099b92a /src/osc/dispatch.c | |
| parent | 234dd752dc2e15afab38cbbf78f8aa32be72ea5f (diff) | |
Remove unused private functions and inline trivial helpers
Diffstat (limited to 'src/osc/dispatch.c')
| -rw-r--r-- | src/osc/dispatch.c | 12 |
1 files changed, 1 insertions, 11 deletions
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) && |
