From fea59fcf7903bc65d3f3579687a774100d837cb0 Mon Sep 17 00:00:00 2001 From: Tim Duesterhus Date: Sat, 3 Apr 2021 20:39:21 +0200 Subject: [PATCH] CLEANUP: ist: Remove unused `count` argument from `ist2str*` This argument is not being used inside the function (and the functions themselves are unused as well) and not documented. Its purpose is not clear. Just remove it. --- include/import/ist.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/import/ist.h b/include/import/ist.h index a19e22802..af9bbac3c 100644 --- a/include/import/ist.h +++ b/include/import/ist.h @@ -554,7 +554,7 @@ static inline struct ist ist2bin(char *dst, const struct ist src) * already been checked. An ist made of the output and its length (not counting * the trailing zero) are returned. */ -static inline struct ist ist2str(char *dst, const struct ist src, size_t count) +static inline struct ist ist2str(char *dst, const struct ist src) { size_t ofs = 0; @@ -599,7 +599,7 @@ static inline struct ist ist2bin_lc(char *dst, const struct ist src) * the frame length has already been checked. An ist made of the output and its * length (not counting the trailing zero) are returned. */ -static inline struct ist ist2str_lc(char *dst, const struct ist src, size_t count) +static inline struct ist ist2str_lc(char *dst, const struct ist src) { size_t ofs = 0; @@ -644,7 +644,7 @@ static inline struct ist ist2bin_uc(char *dst, const struct ist src) * the frame length has already been checked. An ist made of the output and its * length (not counting the trailing zero) are returned. */ -static inline struct ist ist2str_uc(char *dst, const struct ist src, size_t count) +static inline struct ist ist2str_uc(char *dst, const struct ist src) { size_t ofs = 0;