From 691eb1145c4c4d8a0af0c5cb434ff7cde9e827eb Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 4 Apr 2019 14:53:53 +0200 Subject: [PATCH] tweaks: remove a function that is now unused --- src/proto.h | 1 - src/utils.c | 7 ------- 2 files changed, 8 deletions(-) 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)