diff options
author | Max Kellermann <max@duempel.org> | 2008-12-16 21:15:20 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-16 21:15:20 +0100 |
commit | 3287726736a0432d2316914767b397caab0fd11f (patch) | |
tree | 3e41cffa2495da765e68fd517fcb79b97bfbaa0f /src/ls.c | |
parent | 3d4fb9a9a64b60d936e04c13fc391a274822b6b3 (diff) |
ls: removed isValidRemoteUtf8Url()
The function didn't do anything useful, it was just several lines
obfuscating that it was only forwarding isRemoteUrl()'s return value.
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 40 |
1 files changed, 0 insertions, 40 deletions
@@ -44,46 +44,6 @@ int printRemoteUrlHandlers(struct client *client) return 0; } -int isValidRemoteUtf8Url(const char *utf8url) -{ - int ret = 0; - const char *temp; - - switch (isRemoteUrl(utf8url)) { - case 1: - ret = 1; - temp = utf8url; - while (*temp) { - if ((*temp >= 'a' && *temp <= 'z') || - (*temp >= 'A' && *temp <= 'Z') || - (*temp >= '0' && *temp <= '9') || - *temp == '$' || - *temp == '-' || - *temp == '.' || - *temp == '+' || - *temp == '!' || - *temp == '*' || - *temp == '\'' || - *temp == '(' || - *temp == ')' || - *temp == ',' || - *temp == '%' || - *temp == '/' || - *temp == ':' || - *temp == '?' || - *temp == ';' || *temp == '&' || *temp == '=') { - } else { - ret = 1; - break; - } - temp++; - } - break; - } - - return ret; -} - int isRemoteUrl(const char *url) { int count = 0; |