diff options
author | 2023-02-20 15:43:42 +0800 | |
---|---|---|
committer | 2023-03-19 10:00:01 +0000 | |
commit | 03eef94a8d62f868ca37fd1174808d9a0adec22d (patch) | |
tree | 0d6b2a0b49fd3856738f3f716b35865266b7f239 /java/src | |
parent | ce22ebc5579ab049de7e4015e0d34c1d7650157a (diff) | |
download | latinime-03eef94a8d62f868ca37fd1174808d9a0adec22d.tar.gz latinime-03eef94a8d62f868ca37fd1174808d9a0adec22d.tar.xz latinime-03eef94a8d62f868ca37fd1174808d9a0adec22d.zip |
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:100: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>
Diffstat (limited to 'java/src')
0 files changed, 0 insertions, 0 deletions