From de9a357de84da4436b263ff6a969eb4ac753af0d Mon Sep 17 00:00:00 2001 From: Ian Fan Date: Tue, 22 Jan 2019 10:43:48 +0000 Subject: util.c: remove numlen function Its uses have been replaced by snprintf, which is more in line with its usage. --- common/util.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'common') diff --git a/common/util.c b/common/util.c index bd7bed2d..edbbf3f7 100644 --- a/common/util.c +++ b/common/util.c @@ -11,15 +11,6 @@ int wrap(int i, int max) { return ((i % max) + max) % max; } -int numlen(int n) { - int j = n <= 0 ? 1 : 0; - while (n) { - j++; - n /= 10; - } - return j; -} - uint32_t parse_color(const char *color) { if (color[0] == '#') { ++color; -- cgit v1.2.3-54-g00ecf