summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-09-27 02:06:27 -0400
committerAdam Jackson <ajax@redhat.com>2009-01-20 23:25:31 -0500
commit38bac54519a67ab1a276b66dbaa84a3327ccf827 (patch)
treee33b5c1e5b89f5d31295fbcc74a4d9cb216d4ec8 /src
parentf431b4eb4dc743ccdf94b1b2ed858cc21f63c091 (diff)
Remove some strcasecmp silliness
Diffstat (limited to 'src')
-rw-r--r--src/FreeType/xttcap.h4
-rw-r--r--src/util/fontutil.c28
2 files changed, 0 insertions, 32 deletions
diff --git a/src/FreeType/xttcap.h b/src/FreeType/xttcap.h
index 9da3c96..e91e523 100644
--- a/src/FreeType/xttcap.h
+++ b/src/FreeType/xttcap.h
@@ -121,10 +121,6 @@ SPropRecValList_dump(SRefPropRecValList *refList);
Prototypes (xttmisc)
*/
-/* compare strings with ignoring case */
- /* False == equal, True == not equal */
-Bool mystrcasecmp(char const *s1, char const *s2);
-
/* strdup clone */
char * XttXstrdup(char const *str);
#undef xstrdup
diff --git a/src/util/fontutil.c b/src/util/fontutil.c
index 181b1b2..aa89ce0 100644
--- a/src/util/fontutil.c
+++ b/src/util/fontutil.c
@@ -411,31 +411,3 @@ add_range(fsRange *newrange,
return Successful;
}
-
-/* It is difficult to find a good place for this. */
-#ifdef NEED_STRCASECMP
-int
-f_strcasecmp(const char *s1, const char *s2)
-{
- char c1, c2;
-
- if (*s1 == 0)
- if (*s2 == 0)
- return 0;
- else
- return 1;
-
- c1 = (isupper (*s1) ? tolower (*s1) : *s1);
- c2 = (isupper (*s2) ? tolower (*s2) : *s2);
- while (c1 == c2) {
- if (c1 == '\0')
- return 0;
- s1++;
- s2++;
- c1 = (isupper (*s1) ? tolower (*s1) : *s1);
- c2 = (isupper (*s2) ? tolower (*s2) : *s2);
- }
- return c1 - c2;
-}
-#endif
-