[tracker] libtracker-data: remove unneeded fallback methods to use glib as unicode support



commit bf12da78b78071735c35ca01d3c8b2b30275119e
Author: Aleksander Morgado <aleksander aleksander es>
Date:   Wed Jan 15 13:36:44 2014 +0100

    libtracker-data: remove unneeded fallback methods to use glib as unicode support
    
    We already require either libunistring or libicu, so the glib-based fallback
    methods will actually never be used.

 src/libtracker-data/tracker-db-interface-sqlite.c |   61 ---------------------
 1 files changed, 0 insertions(+), 61 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-interface-sqlite.c 
b/src/libtracker-data/tracker-db-interface-sqlite.c
index a9e899e..5ac09d1 100644
--- a/src/libtracker-data/tracker-db-interface-sqlite.c
+++ b/src/libtracker-data/tracker-db-interface-sqlite.c
@@ -700,67 +700,6 @@ function_sparql_case_fold (sqlite3_context *context,
 
        sqlite3_result_text16 (context, zOutput, -1, sqlite3_free);
 }
-#else /* GLib based */
-
-static void
-function_sparql_lower_case (sqlite3_context *context,
-                            int              argc,
-                            sqlite3_value   *argv[])
-{
-       const gchar *zInput;
-       gchar *zOutput;
-       int nInput;
-
-       g_assert (argc == 1);
-
-       /* GLib API works with UTF-8, so use the UTF-8 functions of SQLite too */
-
-       zInput = (const gchar*) sqlite3_value_text (argv[0]);
-
-       if (!zInput) {
-               return;
-       }
-
-       nInput = sqlite3_value_bytes (argv[0]);
-
-       if (!zOutput) {
-               return;
-       }
-
-       zOutput = g_utf8_strdown (zInput, nInput);
-
-       sqlite3_result_text (context, zOutput, -1, g_free);
-}
-
-static void
-function_sparql_case_fold (sqlite3_context *context,
-                           int              argc,
-                           sqlite3_value   *argv[])
-{
-       const gchar *zInput;
-       gchar *zOutput;
-       int nInput;
-
-       g_assert (argc == 1);
-
-       /* GLib API works with UTF-8, so use the UTF-8 functions of SQLite too */
-
-       zInput = (const gchar*) sqlite3_value_text (argv[0]);
-
-       if (!zInput) {
-               return;
-       }
-
-       nInput = sqlite3_value_bytes (argv[0]);
-
-       if (!zOutput) {
-               return;
-       }
-
-       zOutput = g_utf8_casefold (zInput, nInput);
-
-       sqlite3_result_text (context, zOutput, -1, g_free);
-}
 
 #endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]