Merge "Remove unused method from MatchAllNetworkSpecifier"

This commit is contained in:
Lucas Lin
2021-01-29 02:47:00 +00:00
committed by Gerrit Code Review

View File

@@ -31,17 +31,6 @@ import android.os.Parcelable;
*/
@SystemApi
public final class MatchAllNetworkSpecifier extends NetworkSpecifier implements Parcelable {
/**
* Utility method which verifies that the ns argument is not a MatchAllNetworkSpecifier and
* throws an IllegalArgumentException if it is.
* @hide
*/
public static void checkNotMatchAllNetworkSpecifier(NetworkSpecifier ns) {
if (ns instanceof MatchAllNetworkSpecifier) {
throw new IllegalArgumentException("A MatchAllNetworkSpecifier is not permitted");
}
}
/** @hide */
@Override
public boolean canBeSatisfiedBy(NetworkSpecifier other) {