diff options
author | Max Kellermann <max@duempel.org> | 2015-06-27 16:05:30 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-06-27 16:05:54 +0200 |
commit | 6f7bfa71a99d118dbc1bd20ff60da8136deb4eaa (patch) | |
tree | 7ab15e59503594bb79b210617ce986f7421053e4 | |
parent | fb3564fbe76a10a0825bd06c0ff19f481d94b835 (diff) |
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.
-rw-r--r-- | src/lib/icu/Collate.cxx | 9 |
1 files changed, 0 insertions, 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 <unicode/ucol.h> #include <unicode/ustring.h> -#elif defined(HAVE_GLIB) -#include <glib.h> #else #include <algorithm> #include <ctype.h> @@ -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]; |