From 2422319cb7437ae3e0283f5cb0014ad479171a3a Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Wed, 12 May 2021 00:48:28 +0900 Subject: [PATCH] Remove dead code. Remove a few legacy methods that have no callers. Test: m Change-Id: I499e940dc98453194fc528d65a89696471ad8bdd --- .../networkstack/tethering/Tethering.java | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/Tethering/src/com/android/networkstack/tethering/Tethering.java b/Tethering/src/com/android/networkstack/tethering/Tethering.java index 1311e7b461..df9e12a25c 100644 --- a/Tethering/src/com/android/networkstack/tethering/Tethering.java +++ b/Tethering/src/com/android/networkstack/tethering/Tethering.java @@ -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))); }