From 6f7bfa71a99d118dbc1bd20ff60da8136deb4eaa Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 27 Jun 2015 16:05:30 +0200 Subject: lib/icu/Collate: remove GLib implementation There is not much use in GLib: on Windows, we have a native API for string collation, and the rest uses either libicu or the standard C library calls. --- src/lib/icu/Collate.cxx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/lib/icu/Collate.cxx b/src/lib/icu/Collate.cxx index 97a5766d8..dc8598a7a 100644 --- a/src/lib/icu/Collate.cxx +++ b/src/lib/icu/Collate.cxx @@ -31,8 +31,6 @@ #include #include -#elif defined(HAVE_GLIB) -#include #else #include #include @@ -134,8 +132,6 @@ IcuCollate(const char *a, const char *b) result -= 2; return result; -#elif defined(HAVE_GLIB) - return g_utf8_collate(a, b); #else return strcoll(a, b); #endif @@ -201,11 +197,6 @@ IcuCaseFold(const char *src) return result; -#elif defined(HAVE_GLIB) - char *tmp = g_utf8_casefold(src, -1); - auto result = AllocatedString<>::Duplicate(tmp); - g_free(tmp); - return result; #else size_t size = strlen(src) + 1; auto buffer = new char[size]; -- cgit v1.2.3