Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-01-18 15:32:34 -0600
committerDan McGee <dan@archlinux.org>2012-01-18 15:32:34 -0600
commit7b1a86b8939f59693f8bb0ea0454a702d5e2434e (patch)
tree9326cc658ad35b5aafe0f59c6f85c9c0dcbe3105
parentbe229d129eeb43e774217921e1c7e1bb802775fe (diff)
Remove unused strtoupper() function
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--src/pacman/util.c13
-rw-r--r--src/pacman/util.h1
2 files changed, 0 insertions, 14 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index b9ee8c9c..e4e44c63 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -312,19 +312,6 @@ void indentprint(const char *str, size_t indent)
free(wcstr);
}
-/* Convert a string to uppercase
- */
-char *strtoupper(char *str)
-{
- char *ptr = str;
-
- while(*ptr) {
- (*ptr) = (char)toupper((unsigned char)*ptr);
- ptr++;
- }
- return str;
-}
-
/* Trim whitespace and newlines from a string
*/
char *strtrim(char *str)
diff --git a/src/pacman/util.h b/src/pacman/util.h
index 6ec962ff..49cf1dbd 100644
--- a/src/pacman/util.h
+++ b/src/pacman/util.h
@@ -55,7 +55,6 @@ int rmrf(const char *path);
const char *mbasename(const char *path);
char *mdirname(const char *path);
void indentprint(const char *str, size_t indent);
-char *strtoupper(char *str);
char *strtrim(char *str);
char *strreplace(const char *str, const char *needle, const char *replace);
alpm_list_t *strsplit(const char *str, const char splitchar);