From e05d4ca4dc13f2e92d6fa5ec437d6b2e8de0adde Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Sun, 31 Aug 2014 18:29:37 -0700 Subject: Get rid of one redundant comparison of #mComposingTextStart The code in question is not only redundant but also harmful because it causes unnecessary integer boxing. BUG: 17340578 Change-Id: Ife6e48889db80394d224297c53806105dc41d56e --- core/java/android/view/inputmethod/CursorAnchorInfo.java | 3 --- 1 file changed, 3 deletions(-) (limited to 'core/java/android/view/inputmethod') diff --git a/core/java/android/view/inputmethod/CursorAnchorInfo.java b/core/java/android/view/inputmethod/CursorAnchorInfo.java index 730b7f6..0492824 100644 --- a/core/java/android/view/inputmethod/CursorAnchorInfo.java +++ b/core/java/android/view/inputmethod/CursorAnchorInfo.java @@ -211,9 +211,6 @@ public final class CursorAnchorInfo implements Parcelable { || !areSameFloatImpl(mInsertionMarkerBottom, that.mInsertionMarkerBottom)) { return false; } - if (!Objects.equals(mComposingTextStart, that.mComposingTextStart)) { - return false; - } if (!Objects.equals(mCharacterRects, that.mCharacterRects)) { return false; } -- cgit v1.1