[IL28] Remove useless code

I don't understand why this was checked in. The tests are completely
useless, that makes the variables write-only, and the only side effect
is useless as the keyboard commits suicide upon exiting debug
settings.

Change-Id: I4eb25295183f43a2e947a6a0467ea168d023c18a
This commit is contained in:
Jean Chalard 2013-12-20 19:37:52 +09:00
parent 55ce2cc2d5
commit 81e8d16031

View file

@ -129,10 +129,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
private UserBinaryDictionary mUserDictionary;
// Personalization debugging params
private boolean mUseOnlyPersonalizationDictionaryForDebug = false;
private boolean mBoostPersonalizationDictionaryForDebug = false;
// Object for reacting to adding/removing a dictionary pack.
private BroadcastReceiver mDictionaryPackInstallReceiver =
new DictionaryPackInstallBroadcastReceiver(this);
@ -832,8 +828,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
currentSettingsValues.mGestureTrailEnabled,
currentSettingsValues.mGestureFloatingPreviewTextEnabled);
initPersonalizationDebugSettings(currentSettingsValues);
if (TRACE) Debug.startMethodTracing("/data/trace/latinime");
}
@ -875,25 +869,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
}
}
// Initialization of personalization debug settings. This must be called inside
// onStartInputView.
private void initPersonalizationDebugSettings(SettingsValues currentSettingsValues) {
if (mUseOnlyPersonalizationDictionaryForDebug
!= currentSettingsValues.mUseOnlyPersonalizationDictionaryForDebug) {
// Only for debug
initSuggest();
mUseOnlyPersonalizationDictionaryForDebug =
currentSettingsValues.mUseOnlyPersonalizationDictionaryForDebug;
}
if (mBoostPersonalizationDictionaryForDebug !=
currentSettingsValues.mBoostPersonalizationDictionaryForDebug) {
// Only for debug
mBoostPersonalizationDictionaryForDebug =
currentSettingsValues.mBoostPersonalizationDictionaryForDebug;
}
}
@Override
public void onWindowHidden() {
super.onWindowHidden();