summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2021-03-09 09:31:17 +0000
committerRemi NGUYEN VAN <reminv@google.com>2021-03-09 09:31:21 +0000
commit7f8fae2b3a929568f71a8c17dc6fcfdcf10073cc (patch)
tree463f540e9d9b0cc365d6cb87bd3d929fe3f826e2 /core/java
parentb002b20492e4ef078c4d717025614f5bbc72733c (diff)
Remove unused buildNetworkIdentity
The overload using a NetworkState is now unused. Bug: 174123988 Change-Id: I22f2d2fffd2d70c08097d3217f01393ff8e75ab5 Test: m
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/net/NetworkIdentity.java15
1 files changed, 0 insertions, 15 deletions
diff --git a/core/java/android/net/NetworkIdentity.java b/core/java/android/net/NetworkIdentity.java
index a5ece7b713c7..b037261f0bc2 100644
--- a/core/java/android/net/NetworkIdentity.java
+++ b/core/java/android/net/NetworkIdentity.java
@@ -179,21 +179,6 @@ public class NetworkIdentity implements Comparable<NetworkIdentity> {
}
/**
- * Build a {@link NetworkIdentity} from the given {@link NetworkState} and
- * {@code subType}, assuming that any mobile networks are using the current IMSI.
- * The subType if applicable, should be set as one of the TelephonyManager.NETWORK_TYPE_*
- * constants, or {@link android.telephony.TelephonyManager#NETWORK_TYPE_UNKNOWN} if not.
- */
- // TODO: Delete this function after NetworkPolicyManagerService finishes the migration.
- public static NetworkIdentity buildNetworkIdentity(Context context,
- NetworkState state, boolean defaultNetwork, @NetworkType int subType) {
- final NetworkStateSnapshot snapshot = new NetworkStateSnapshot(state.network,
- state.networkCapabilities, state.linkProperties, state.subscriberId,
- state.legacyNetworkType);
- return buildNetworkIdentity(context, snapshot, defaultNetwork, subType);
- }
-
- /**
* Build a {@link NetworkIdentity} from the given {@link NetworkStateSnapshot} and
* {@code subType}, assuming that any mobile networks are using the current IMSI.
* The subType if applicable, should be set as one of the TelephonyManager.NETWORK_TYPE_*