Revert "[NS D03] Migrate the bad wifi avoidance policy"

Revert submission 10338939

Reason for revert: The feature was punted out of R.
Reverted Changes:
I32c12702c:[NS D04] Implement a simple speed comparison betwe...
I688593cc0:[NS D03] Migrate the bad wifi avoidance policy

Change-Id: I640635a1ed94bed3b53466abe2a988caf0eca2b0
This commit is contained in:
Chalard Jean
2020-02-20 07:39:19 +00:00
parent 4bdb2cf7a0
commit 5845d54106
3 changed files with 2 additions and 47 deletions

View File

@@ -16,16 +16,12 @@
package com.android.internal.util;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.os.RemoteException;
import android.util.ExceptionUtils;
import java.util.Collection;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.function.Supplier;
/**
@@ -222,20 +218,4 @@ public class FunctionalUtils {
}
}
}
/**
* Find the first element in the list that matches the predicate.
*
* The standard Java way of doing this is to use streams, which is very expensive.
*
* @return the first matching element, or null if none.
*/
@Nullable
public static <T> T findFirst(@NonNull final Collection<T> haystack,
@NonNull final Predicate<T> p) {
for (final T needle : haystack) {
if (p.test(needle)) return needle;
}
return null;
}
}