diff options
author | Nick Kralevich <nnk@google.com> | 2019-08-27 09:48:01 -0700 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2019-09-04 17:47:01 +0000 |
commit | 2f967a222a948027bb7f02970370ccaa8ae608a2 (patch) | |
tree | 67ca0ab1d8d636c16e7dcfa05abe07d087bc46d4 /android/sqlite3_android.cpp | |
parent | 28c3d3b2f5cb5c6057fc396c9ad18330bb400a04 (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
(cherry picked from commit c52a17358593062a7eb75a023c115df9ad89563b)
Diffstat (limited to 'android/sqlite3_android.cpp')
-rw-r--r-- | android/sqlite3_android.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/android/sqlite3_android.cpp b/android/sqlite3_android.cpp index 7356f9d..44799fd 100644 --- a/android/sqlite3_android.cpp +++ b/android/sqlite3_android.cpp @@ -226,6 +226,7 @@ struct SqliteUserData { UCollator* collator; }; +#if 0 /** * This function is invoked as: * @@ -402,6 +403,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) { @@ -439,6 +441,7 @@ extern "C" int register_localized_collators(sqlite3* handle, const char* systemL 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) { @@ -452,6 +455,7 @@ extern "C" int register_localized_collators(sqlite3* handle, const char* systemL if (err != SQLITE_OK) { return err; } +#endif //// PHONEBOOK_COLLATOR status = U_ZERO_ERROR; |