diff options
author | Alexander Levin <al.le@rockbox.org> | 2009-08-12 13:49:29 +0000 |
---|---|---|
committer | Alexander Levin <al.le@rockbox.org> | 2009-08-12 13:49:29 +0000 |
commit | 345920fe7e9d261abf564a71cf9675fbe72679de (patch) | |
tree | 7d29792e0720b6a1c7812e16131e15d35fca4d72 | |
parent | d353a7fd4e1956d367121148a95f8bab6d8fc766 (diff) | |
download | rockbox-345920fe7e9d261abf564a71cf9675fbe72679de.tar.gz rockbox-345920fe7e9d261abf564a71cf9675fbe72679de.zip |
Remove dead code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22268 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/common/strnatcmp.c | 17 |
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) | |||
58 | return isdigit(a); | 58 | return isdigit(a); |
59 | } | 59 | } |
60 | 60 | ||
61 | #if 0 | ||
62 | static inline int | ||
63 | nat_isspace(int a) | ||
64 | { | ||
65 | return isspace(a); | ||
66 | } | ||
67 | #endif | ||
68 | |||
69 | static inline int | 61 | static inline int |
70 | nat_unify_case(int a) | 62 | nat_unify_case(int a) |
71 | { | 63 | { |
@@ -141,14 +133,7 @@ static int strnatcmp0(char const *a, char const *b, int fold_case) | |||
141 | while (1) { | 133 | while (1) { |
142 | ca = to_int(a[ai]); | 134 | ca = to_int(a[ai]); |
143 | cb = to_int(b[bi]); | 135 | cb = to_int(b[bi]); |
144 | #if 0 | 136 | |
145 | /* skip over leading spaces or zeros */ | ||
146 | while (nat_isspace(ca)) | ||
147 | ca = to_int(a[++ai]); | ||
148 | |||
149 | while (nat_isspace(cb)) | ||
150 | cb = to_int(b[++bi]); | ||
151 | #endif | ||
152 | /* process run of digits */ | 137 | /* process run of digits */ |
153 | if (nat_isdigit(ca) && nat_isdigit(cb)) { | 138 | if (nat_isdigit(ca) && nat_isdigit(cb)) { |
154 | fractional = (ca == '0' || cb == '0'); | 139 | fractional = (ca == '0' || cb == '0'); |