From 23a357d71d5d1a404975375fd376618a4fd2a596 Mon Sep 17 00:00:00 2001 From: Ken Wakasa Date: Fri, 24 Oct 2014 19:47:26 +0900 Subject: [PATCH] Small cleanup Change-Id: I2b81450f99d7b4493ba0fc5e502f4333b8db48cd --- common/src/com/android/inputmethod/latin/common/Constants.java | 2 -- .../com/android/inputmethod/keyboard/emoji/EmojiCategory.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/common/src/com/android/inputmethod/latin/common/Constants.java b/common/src/com/android/inputmethod/latin/common/Constants.java index a0cbd2c38..9a244d46a 100644 --- a/common/src/com/android/inputmethod/latin/common/Constants.java +++ b/common/src/com/android/inputmethod/latin/common/Constants.java @@ -296,8 +296,6 @@ public final class Constants { return "[" + sb + "]"; } - public static final int MAX_INT_BIT_COUNT = 32; - /** * Screen metrics (a.k.a. Device form factor) constants of * {@link com.android.inputmethod.latin.R.integer#config_screen_metrics}. diff --git a/java/src/com/android/inputmethod/keyboard/emoji/EmojiCategory.java b/java/src/com/android/inputmethod/keyboard/emoji/EmojiCategory.java index 0e8ce7f23..c8e832b93 100644 --- a/java/src/com/android/inputmethod/keyboard/emoji/EmojiCategory.java +++ b/java/src/com/android/inputmethod/keyboard/emoji/EmojiCategory.java @@ -271,7 +271,7 @@ final class EmojiCategory { } private static final Long getCategoryKeyboardMapKey(final int categoryId, final int id) { - return (((long) categoryId) << Constants.MAX_INT_BIT_COUNT) | id; + return (((long) categoryId) << Integer.SIZE) | id; } public DynamicGridKeyboard getKeyboard(final int categoryId, final int id) {