Refactor: Remove unecessary method KeyboardData.load_pin_entry

This commit is contained in:
Jules Aguillon 2023-03-28 11:55:24 +02:00
parent 35b4e442ab
commit 3caca59ff4
2 changed files with 1 additions and 9 deletions

View File

@ -260,7 +260,7 @@ public class Keyboard2 extends InputMethodService
case InputType.TYPE_CLASS_PHONE: case InputType.TYPE_CLASS_PHONE:
case InputType.TYPE_CLASS_DATETIME: case InputType.TYPE_CLASS_DATETIME:
_currentSpecialLayout = _currentSpecialLayout =
_config.modify_numpad(KeyboardData.load_pin_entry(getResources())); _config.modify_numpad(KeyboardData.load(getResources(), R.xml.pin));
break; break;
default: default:
_currentSpecialLayout = null; _currentSpecialLayout = null;

View File

@ -114,7 +114,6 @@ class KeyboardData
public static Row bottom_row; public static Row bottom_row;
public static Row number_row; public static Row number_row;
public static KeyboardData num_pad; public static KeyboardData num_pad;
public static KeyboardData pin_entry;
private static Map<Integer, KeyboardData> _layoutCache = new HashMap<Integer, KeyboardData>(); private static Map<Integer, KeyboardData> _layoutCache = new HashMap<Integer, KeyboardData>();
public static void init(Resources res) public static void init(Resources res)
@ -131,13 +130,6 @@ class KeyboardData
} }
} }
public static KeyboardData load_pin_entry(Resources res)
{
if (pin_entry == null)
pin_entry = load(res, R.xml.pin);
return pin_entry;
}
/** Load a layout from a resource ID. Returns [null] on error. */ /** Load a layout from a resource ID. Returns [null] on error. */
public static KeyboardData load(Resources res, int id) public static KeyboardData load(Resources res, int id)
{ {