A mirror for futokb (https://gitlab.futo.org/keyboard)
Go to file
Jing Mike 03eef94a8d Remove unused variables
Since some variables with module LatinIME are defined but not used,
when compiled with build combination "sdk_pc_x86_64-userdebug" and
build command "mmm packages/inputmethods/LatinIME", the following
code lines will be reported that "variable 'XXX' set but not used".
(should be similar for all the other build combinations)

Repeated 10 times for each:
terminal_position_lookup_table.cpp:74:9 removedEntryCount
terminal_position_lookup_table.cpp:85:9 removedEntryCount
proximity_info_state_utils.cpp:493:9 tempTime
trie_map.cpp:56:9 unusedRegionSize
suggestion_results.cpp💯9 index

Repeated 80+ times:
proximity_info_utils.h:75:25 proximityChar

With this patch we are removing some of the unused variables and
putting the C++ 17 attribute [[maybe_unused]] to the others which
are used for logging. Then all the related build warnings have been
eliminated.

Test: mmm packages/inputmethods/LatinIME, presubmit check.

Change-Id: Ia66766322d6ae8a010b1cb55cc22993fbc6d012c
Signed-off-by: Jing Mike <jingyangliu@eswincomputing.com>
2023-03-19 10:00:01 +00:00
common [LSC] Add LOCAL_LICENSE_KINDS to packages/inputmethods/LatinIME 2021-02-17 09:46:27 -08:00
dictionaries Update LatinIME to comply with Android's inclusive language guidance 2020-08-12 13:07:02 +02:00
gradle/wrapper
java Fix errorprone warnings that should be errors 2022-10-17 11:01:42 -07:00
native Remove unused variables 2023-03-19 10:00:01 +00:00
tests Fix errorprone warnings that should be errors 2022-10-17 11:01:42 -07:00
tools Fix errorprone warnings that should be errors 2022-10-17 11:01:42 -07:00
.gitignore
Android.bp [LSC] Add LOCAL_LICENSE_KINDS to packages/inputmethods/LatinIME 2021-02-17 09:46:27 -08:00
build.gradle Migrate packages/inputmethods/LatinIME to androidx.test 2018-12-13 19:06:42 -08:00
CleanSpec.mk Move LatinIME and its lib to /product 2019-01-11 15:20:31 +00:00
gradlew
gradlew.bat
NOTICE Move MODULE_LICENSE_APACHE2 to the project top dir 2018-11-19 12:11:31 -08:00
OWNERS Update OWNERS file 2022-02-10 01:34:32 +00:00