summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorPatrick Rohr <prohr@google.com>2021-06-01 09:51:48 +0200
committerPatrick Rohr <prohr@google.com>2021-07-28 14:22:41 +0200
commite1a9e20364c060d115dc336eb7025884e66879c7 (patch)
tree63de8e21beaef086628695cbbaa976540f8fd195 /java
parent5cd9288b039a425ddef0061a711b92451544db9f (diff)
downloadethernet-e1a9e20364c060d115dc336eb7025884e66879c7.tar.gz
Remove Unused Code From EthernetNetworkFactory
Test: atest EthernetNetworkFactoryTest Change-Id: Ibe0190b3108dca644da2d67bd107954cb26f41ce
Diffstat (limited to 'java')
-rw-r--r--java/com/android/server/ethernet/EthernetNetworkFactory.java20
1 files changed, 0 insertions, 20 deletions
diff --git a/java/com/android/server/ethernet/EthernetNetworkFactory.java b/java/com/android/server/ethernet/EthernetNetworkFactory.java
index f4de23d..32dbd7e 100644
--- a/java/com/android/server/ethernet/EthernetNetworkFactory.java
+++ b/java/com/android/server/ethernet/EthernetNetworkFactory.java
@@ -423,10 +423,6 @@ public class EthernetNetworkFactory extends NetworkFactory {
}
}
- boolean satisfied(NetworkCapabilities requestedCapabilities) {
- return requestedCapabilities.satisfiedByNetworkCapabilities(mCapabilities);
- }
-
boolean isRestricted() {
return !mCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED);
}
@@ -569,22 +565,6 @@ public class EthernetNetworkFactory extends NetworkFactory {
mLinkProperties.clear();
}
- private void updateAgent() {
- if (mNetworkAgent == null) return;
- if (DBG) {
- Log.i(TAG, "Updating mNetworkAgent with: " +
- mCapabilities + ", " +
- mLinkProperties);
- }
- mNetworkAgent.sendNetworkCapabilities(mCapabilities);
- mNetworkAgent.sendLinkPropertiesImpl(mLinkProperties);
-
- // As a note, getNetworkScore() is fairly expensive to calculate. This is fine for now
- // since the agent isn't updated frequently. Consider caching the score in the future if
- // agent updating is required more often
- mNetworkAgent.sendNetworkScore(getNetworkScore());
- }
-
private static void provisionIpClient(IIpClient ipClient, IpConfiguration config,
String tcpBufferSizes) {
if (config.getProxySettings() == ProxySettings.STATIC ||