summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2019-08-27 09:48:01 -0700
committerNick Kralevich <nnk@google.com>2019-08-27 09:48:01 -0700
commitc52a17358593062a7eb75a023c115df9ad89563b (patch)
tree930a7467174a56d3055bf50202d795fc7acb688a
parent723f7b5ecb5b1c2a25c4ca32229ade080c86eb0e (diff)
sqlite3_android.cpp: disable _TOKENIZE
Comment out the tokenize function. This code doesn't appear to be used. A future change will further clean up this code and delete it properly. Bug: 139186193 Test: compiles and boots Change-Id: I0b2c37b6716162228205fc1ca8bea0f397f36baf
-rw-r--r--android/sqlite3_android.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/sqlite3_android.cpp b/android/sqlite3_android.cpp
index d2f1802..d204bd0 100644
--- a/android/sqlite3_android.cpp
+++ b/android/sqlite3_android.cpp
@@ -237,6 +237,7 @@ struct SqliteUserData {
UCollator* collator;
};
+#if 0
/**
* This function is invoked as:
*
@@ -413,6 +414,7 @@ static void tokenize(sqlite3_context * context, int argc, sqlite3_value ** argv)
} while ((token = u_strtok_r(NULL, delim, &state)) != NULL);
sqlite3_result_int(context, numTokens);
}
+#endif
static void localized_collator_dtor(UCollator* collator)
{
@@ -457,6 +459,7 @@ extern "C" int register_localized_collators(sqlite3* handle __attribute((unused)
return err;
}
+#if 0
// Register the _TOKENIZE function
err = sqlite3_create_function(handle, "_TOKENIZE", 4, SQLITE_UTF16, collator, tokenize, NULL, NULL);
if (err != SQLITE_OK) {
@@ -470,6 +473,7 @@ extern "C" int register_localized_collators(sqlite3* handle __attribute((unused)
if (err != SQLITE_OK) {
return err;
}
+#endif
//// PHONEBOOK_COLLATOR
status = U_ZERO_ERROR;