X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/ac9b744ede346c3929794a14ae5c8d3580b7fdb6..0cebd8284370988c8b1807ef2544bd80804d074e:/uip/flist.c diff --git a/uip/flist.c b/uip/flist.c index 758d3081..36be1ed2 100644 --- a/uip/flist.c +++ b/uip/flist.c @@ -114,7 +114,6 @@ int AddFolder(char *, int); void BuildFolderList(char *, int); void BuildFolderListRecurse(char *, struct stat *, int); void PrintFolders(void); -static int num_digits (int); void AllocFolders(struct Folder **, int *, int); int AssignPriority(char *); static void do_readonly_folders(void); @@ -604,29 +603,6 @@ PrintFolders(void) } } -/* - * Calculate the number of digits in a nonnegative integer - */ -static int -num_digits (int n) -{ - int ndigits = 0; - - /* Sanity check */ - if (n < 0) - adios (NULL, "oops, num_digits called with negative value"); - - if (n == 0) - return 1; - - while (n) { - n /= 10; - ndigits++; - } - - return ndigits; -} - /* * Put them in priority order. */