diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/icu/Collate.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib/icu/Collate.cxx b/src/lib/icu/Collate.cxx index 4d1526b28..f6621eb21 100644 --- a/src/lib/icu/Collate.cxx +++ b/src/lib/icu/Collate.cxx @@ -43,10 +43,11 @@ static UCollator *collator; #endif +#ifdef HAVE_ICU + bool IcuCollateInit(Error &error) { -#ifdef HAVE_ICU assert(collator == nullptr); assert(!error.IsDefined()); @@ -57,9 +58,6 @@ IcuCollateInit(Error &error) "ucol_open() failed: %s", u_errorName(code)); return false; } -#else - (void)error; -#endif return true; } @@ -67,15 +65,11 @@ IcuCollateInit(Error &error) void IcuCollateFinish() { -#ifdef HAVE_ICU assert(collator != nullptr); ucol_close(collator); -#endif } -#ifdef HAVE_ICU - static WritableBuffer<UChar> UCharFromUTF8(const char *src) { |