Remove Unused Code From EthernetNetworkFactory am: 698b59510f am: e7048826ba
Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/net/ethernet/+/1722876 Change-Id: I2a4f5caa041f6b0e6f950e536ab74be71a5a2a53
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user