Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0693ff6d authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

Removing unused method indexOfValueByValue

The method was confusing and not used by anyone. Same functionality can
be implemented trivially in the client code.

Test: N/A

Bug: 35765468
Change-Id: Ia019088cd023c62d83760d9ebe883f7559a43375
parent c79d4388
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -43205,7 +43205,6 @@ package android.util {
    method public E get(long, E);
    method public int indexOfKey(long);
    method public int indexOfValue(E);
    method public int indexOfValueByValue(E);
    method public long keyAt(int);
    method public void put(long, E);
    method public void remove(long);
@@ -43408,7 +43407,6 @@ package android.util {
    method public E get(int, E);
    method public int indexOfKey(int);
    method public int indexOfValue(E);
    method public int indexOfValueByValue(E);
    method public int keyAt(int);
    method public void put(int, E);
    method public void remove(int);
+0 −2
Original line number Diff line number Diff line
@@ -46668,7 +46668,6 @@ package android.util {
    method public E get(long, E);
    method public int indexOfKey(long);
    method public int indexOfValue(E);
    method public int indexOfValueByValue(E);
    method public long keyAt(int);
    method public void put(long, E);
    method public void remove(long);
@@ -46871,7 +46870,6 @@ package android.util {
    method public E get(int, E);
    method public int indexOfKey(int);
    method public int indexOfValue(E);
    method public int indexOfValueByValue(E);
    method public int keyAt(int);
    method public void put(int, E);
    method public void remove(int);
+0 −2
Original line number Diff line number Diff line
@@ -43401,7 +43401,6 @@ package android.util {
    method public E get(long, E);
    method public int indexOfKey(long);
    method public int indexOfValue(E);
    method public int indexOfValueByValue(E);
    method public long keyAt(int);
    method public void put(long, E);
    method public void remove(long);
@@ -43604,7 +43603,6 @@ package android.util {
    method public E get(int, E);
    method public int indexOfKey(int);
    method public int indexOfValue(E);
    method public int indexOfValueByValue(E);
    method public int keyAt(int);
    method public void put(int, E);
    method public void remove(int);
+1 −0
Original line number Diff line number Diff line
@@ -315,6 +315,7 @@ public class LongSparseArray<E> implements Cloneable {
     * and that multiple keys can map to the same value and this will
     * find only one of them.
     * <p>Note also that this method uses {@code equals} unlike {@code indexOfValue}.
     * @hide
     */
    public int indexOfValueByValue(E value) {
        if (mGarbage) {
+1 −0
Original line number Diff line number Diff line
@@ -363,6 +363,7 @@ public class SparseArray<E> implements Cloneable {
     * and that multiple keys can map to the same value and this will
     * find only one of them.
     * <p>Note also that this method uses {@code equals} unlike {@code indexOfValue}.
     * @hide
     */
    public int indexOfValueByValue(E value) {
        if (mGarbage) {