summaryrefslogtreecommitdiff
path: root/android/sqlite3_android.cpp
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 13:43:17 -0700
commitdd0b74c3b7b6a262813f59c8b3b8bc8066eb65f9 (patch)
tree6139d6d3d44ab44f181e009aa1d3ffb03d72b250 /android/sqlite3_android.cpp
parentf2a22bea059d2ad6e58dc8d9c8c33d952622afe0 (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 (cherry picked from commit c52a17358593062a7eb75a023c115df9ad89563b) Change-Id: I5193c6fe95cbe6456d758eb44a7d8c53f5e2832d
Diffstat (limited to 'android/sqlite3_android.cpp')
-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 659ee6c..d65f872 100644
--- a/android/sqlite3_android.cpp
+++ b/android/sqlite3_android.cpp
@@ -231,6 +231,7 @@ struct SqliteUserData {
UCollator* collator;
};
+#if 0
/**
* This function is invoked as:
*
@@ -407,6 +408,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)
{
@@ -451,6 +453,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) {
@@ -464,6 +467,7 @@ extern "C" int register_localized_collators(sqlite3* handle __attribute((unused)
if (err != SQLITE_OK) {
return err;
}
+#endif
//// PHONEBOOK_COLLATOR
status = U_ZERO_ERROR;