diff --git a/src/proto.h b/src/proto.h index da58a693..c695d1a5 100644 --- a/src/proto.h +++ b/src/proto.h @@ -560,7 +560,6 @@ int digits(ssize_t n); #endif bool parse_num(const char *str, ssize_t *val); bool parse_line_column(const char *str, ssize_t *line, ssize_t *column); -void null_at(char **data, size_t index); void unsunder(char *str, size_t true_len); void sunder(char *str); #if !defined(ENABLE_TINY) || defined(ENABLE_TABCOMP) || defined(ENABLE_BROWSER) diff --git a/src/utils.c b/src/utils.c index 2783ab8b..fd335385 100644 --- a/src/utils.c +++ b/src/utils.c @@ -159,13 +159,6 @@ bool parse_line_column(const char *str, ssize_t *line, ssize_t *column) return retval; } -/* Null a string at a certain index and align it. */ -void null_at(char **data, size_t index) -{ - *data = charealloc(*data, index + 1); - (*data)[index] = '\0'; -} - /* For non-null-terminated lines. A line, by definition, shouldn't * normally have newlines in it, so encode its nulls as newlines. */ void unsunder(char *str, size_t true_len)