summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorAlexander Levin <al.le@rockbox.org>2009-08-12 13:49:29 +0000
committerAlexander Levin <al.le@rockbox.org>2009-08-12 13:49:29 +0000
commit345920fe7e9d261abf564a71cf9675fbe72679de (patch)
tree7d29792e0720b6a1c7812e16131e15d35fca4d72 /firmware
parentd353a7fd4e1956d367121148a95f8bab6d8fc766 (diff)
downloadrockbox-345920fe7e9d261abf564a71cf9675fbe72679de.tar.gz
rockbox-345920fe7e9d261abf564a71cf9675fbe72679de.tar.bz2
rockbox-345920fe7e9d261abf564a71cf9675fbe72679de.zip
Remove dead code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22268 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/common/strnatcmp.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/firmware/common/strnatcmp.c b/firmware/common/strnatcmp.c
index 09c331f914..93a649358f 100644
--- a/firmware/common/strnatcmp.c
+++ b/firmware/common/strnatcmp.c
@@ -58,14 +58,6 @@ nat_isdigit(int a)
return isdigit(a);
}
-#if 0
-static inline int
-nat_isspace(int a)
-{
- return isspace(a);
-}
-#endif
-
static inline int
nat_unify_case(int a)
{
@@ -141,14 +133,7 @@ static int strnatcmp0(char const *a, char const *b, int fold_case)
while (1) {
ca = to_int(a[ai]);
cb = to_int(b[bi]);
-#if 0
- /* skip over leading spaces or zeros */
- while (nat_isspace(ca))
- ca = to_int(a[++ai]);
-
- while (nat_isspace(cb))
- cb = to_int(b[++bi]);
-#endif
+
/* process run of digits */
if (nat_isdigit(ca) && nat_isdigit(cb)) {
fractional = (ca == '0' || cb == '0');