Remove dead code. am: 2422319cb7

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1703126

Change-Id: I7c3990ac8943e30fae0508a1bda55db02e019a90
This commit is contained in:
Lorenzo Colitti
2021-05-12 10:41:17 +00:00
committed by Automerger Merge Worker

View File

@@ -1280,20 +1280,6 @@ public class Tethering {
return hasDownstreamConfiguration && hasUpstreamConfiguration;
}
// TODO - update callers to use getTetheringConfiguration(),
// which has only final members.
String[] getTetherableUsbRegexs() {
return copy(mConfig.tetherableUsbRegexs);
}
String[] getTetherableWifiRegexs() {
return copy(mConfig.tetherableWifiRegexs);
}
String[] getTetherableBluetoothRegexs() {
return copy(mConfig.tetherableBluetoothRegexs);
}
void setUsbTethering(boolean enable, IIntResultListener listener) {
mHandler.post(() -> {
try {
@@ -1344,12 +1330,6 @@ public class Tethering {
return list.toArray(new String[list.size()]);
}
String[] getTetheredDhcpRanges() {
// TODO: this is only valid for the old DHCP server. Latest search suggests it is only used
// by WifiP2pServiceImpl to start dnsmasq: remove/deprecate after migrating callers.
return mConfig.legacyDhcpRanges;
}
private void logMessage(State state, int what) {
mLog.log(state.getName() + " got " + sMagicDecoderRing.get(what, Integer.toString(what)));
}