summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-01-22 10:43:48 +0000
committerFurkan Sahin <furkan-dev@proton.me>2019-01-22 10:43:48 +0000
commit9dcb08c4506eecb050e4dbaed872fb0bb9f9a3d9 (patch)
tree6a2f05fe18a6152335c832a20e1f7c543badcf48 /common
parenta67c380a43e96baa646e485b04406004a51af674 (diff)
util.c: remove numlen function
Its uses have been replaced by snprintf, which is more in line with its usage.
Diffstat (limited to 'common')
-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) {
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;