From 87d33bac74ecc31d6940c0a403299950d83f0444 Mon Sep 17 00:00:00 2001 From: Handa Wang Date: Mon, 7 Oct 2024 12:58:46 +0000 Subject: [PATCH] Remove unused method TetheringConfiguration#isRandomPrefixBaseEnabled() This CL removes TetheringConfiguration#isRandomPrefixBaseEnabled(). This method was used for configuring PrivateAddressCoordinator. Now PrivateAddressCoordinator doesn't depend on TetheringConfiguration so we'll remove this unused method. Bug: 369282577 Change-Id: I2e556cf5dd6c28cd6aba29ee9093a9873a4f4d3f --- .../networkstack/tethering/TetheringConfiguration.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Tethering/src/com/android/networkstack/tethering/TetheringConfiguration.java b/Tethering/src/com/android/networkstack/tethering/TetheringConfiguration.java index c9817c958d..b3e9c1be9d 100644 --- a/Tethering/src/com/android/networkstack/tethering/TetheringConfiguration.java +++ b/Tethering/src/com/android/networkstack/tethering/TetheringConfiguration.java @@ -182,7 +182,6 @@ public class TetheringConfiguration { private final int mP2pLeasesSubnetPrefixLength; private final boolean mEnableWearTethering; - private final boolean mRandomPrefixBase; private final int mUsbTetheringFunction; protected final ContentResolver mContentResolver; @@ -300,8 +299,6 @@ public class TetheringConfiguration { mEnableWearTethering = shouldEnableWearTethering(ctx); - mRandomPrefixBase = mDeps.isFeatureEnabled(ctx, TETHER_FORCE_RANDOM_PREFIX_BASE_SELECTION); - configLog.log(toString()); } @@ -390,10 +387,6 @@ public class TetheringConfiguration { return mEnableWearTethering; } - public boolean isRandomPrefixBaseEnabled() { - return mRandomPrefixBase; - } - /** * Check whether sync SM is enabled then set it to USE_SYNC_SM. This should be called once * when tethering is created. Otherwise if the flag is pushed while tethering is enabled, @@ -455,9 +448,6 @@ public class TetheringConfiguration { pw.print("mUsbTetheringFunction: "); pw.println(isUsingNcm() ? "NCM" : "RNDIS"); - pw.print("mRandomPrefixBase: "); - pw.println(mRandomPrefixBase); - pw.print("USE_SYNC_SM: "); pw.println(USE_SYNC_SM); }