aboutsummaryrefslogtreecommitdiffstats
path: root/common/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/util.c')
-rw-r--r--common/util.c9
1 files changed, 0 insertions, 9 deletions
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) {
11 return ((i % max) + max) % max; 11 return ((i % max) + max) % max;
12} 12}
13 13
14int numlen(int n) {
15 int j = n <= 0 ? 1 : 0;
16 while (n) {
17 j++;
18 n /= 10;
19 }
20 return j;
21}
22
23uint32_t parse_color(const char *color) { 14uint32_t parse_color(const char *color) {
24 if (color[0] == '#') { 15 if (color[0] == '#') {
25 ++color; 16 ++color;