From ee35e69eae734448d0aa90e46037273cc3f1e6ad Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Thu, 9 Jan 2014 18:29:11 +0900 Subject: Passing SpacingAndPunctuations to StringUtils.looksValidForDictionaryInsertion This change must be checked in together with Iec437d6df0. Change-Id: Idf745b8870965f3bdf690de7ff3b22f83f6204bf --- .../latin/settings/SpacingAndPunctuations.java | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'java/src/com/android/inputmethod/latin/settings/SpacingAndPunctuations.java') diff --git a/java/src/com/android/inputmethod/latin/settings/SpacingAndPunctuations.java b/java/src/com/android/inputmethod/latin/settings/SpacingAndPunctuations.java index 124c97517..dbe30e260 100644 --- a/java/src/com/android/inputmethod/latin/settings/SpacingAndPunctuations.java +++ b/java/src/com/android/inputmethod/latin/settings/SpacingAndPunctuations.java @@ -18,7 +18,6 @@ package com.android.inputmethod.latin.settings; import android.content.res.Resources; -import com.android.inputmethod.annotations.UsedForTesting; import com.android.inputmethod.keyboard.internal.KeySpecParser; import com.android.inputmethod.latin.Constants; import com.android.inputmethod.latin.Dictionary; @@ -43,24 +42,6 @@ public final class SpacingAndPunctuations { public final boolean mCurrentLanguageHasSpaces; public final boolean mUsesAmericanTypography; - // TODO: Remove this constructor. - @UsedForTesting - SpacingAndPunctuations(final Locale locale) { - mSymbolsPrecededBySpace = new int[] { '(', '[', '{', '&' }; - Arrays.sort(mSymbolsPrecededBySpace); - mSymbolsFollowedBySpace = new int[] { '.', ',', ';', ':', '!', '?', ')', ']', '}', '&' }; - Arrays.sort(mSymbolsFollowedBySpace); - mWordConnectors = new int[] { '\'', '-' }; - Arrays.sort(mWordConnectors); - mSentenceSeparator = Constants.CODE_PERIOD; - mSentenceSeparatorAndSpace = ". "; - final String[] suggestPuncsSpec = new String[] { "!", "?", ",", ":", ";" }; - mSuggestPuncList = createSuggestPuncList(suggestPuncsSpec); - mWordSeparators = "&\t \n()[]{}*&<>+=|.,;:!?/_\""; - mCurrentLanguageHasSpaces = true; - mUsesAmericanTypography = Locale.ENGLISH.getLanguage().equals(locale.getLanguage()); - } - public SpacingAndPunctuations(final Resources res) { mSymbolsPrecededBySpace = StringUtils.toCodePointArray(res.getString(R.string.symbols_preceded_by_space)); -- cgit v1.2.3-83-g751a