aboutsummaryrefslogtreecommitdiffstats
path: root/dictionaries
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-06-28 17:41:18 +0900
committerJean Chalard <jchalard@google.com>2012-06-29 16:57:56 +0900
commit7a94cbd2a488d2ff3a4c0b6a4e846d9380600d2e (patch)
tree75e4cd25b67c4f88d7220a3efa598a403e3b7e0c /dictionaries
parentb3cfde2cbb96951b1202c70b9961f340bdf495d0 (diff)
downloadlatinime-7a94cbd2a488d2ff3a4c0b6a4e846d9380600d2e.tar.gz
latinime-7a94cbd2a488d2ff3a4c0b6a4e846d9380600d2e.tar.xz
latinime-7a94cbd2a488d2ff3a4c0b6a4e846d9380600d2e.zip
Remove useless code (A25)
isWhitelistedOrNotAWord takes an 'ignoreCase' argument. By looking at the contents of the wordcomposer here, there is only one case where its output will be different : when the word is typed with a capital, but the lower case version exists in the dictionary. E.g. the user typed "This". In this case, isWhitelistedOrNotAWord in line 235 will return false instead of true, so the test will score a true instead of a false, so hasAutoCorrection may be true instead of false in this specific case and that's the only case where it's different. But in this case, allowsToBeAutoCorrected is certain to be false, which means the result will not have changed if hasAutoCorrection was true in the first place. So in the end this change is sure not to change the behavior. Change-Id: Ic41cf959c20c19165f84d9b8ff006731fa595d84
Diffstat (limited to 'dictionaries')
0 files changed, 0 insertions, 0 deletions