commit 691eb1145c4c4d8a0af0c5cb434ff7cde9e827eb
parent fb04dff6d78d06ec8e87d177530a496fa47aa3ce
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Thu, 4 Apr 2019 14:53:53 +0200
tweaks: remove a function that is now unused
Diffstat:
2 files changed, 0 insertions(+), 8 deletions(-)
diff --git 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
@@ -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)