summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chiachang Wang <chiachangwang@google.com> 2024-03-20 03:09:32 +0000
committer Chiachang Wang <chiachangwang@google.com> 2024-03-20 03:29:08 +0000
commitacbf628b7209bdba4ed186c1fb859b9c92d9362c (patch)
treefb6701328d9e4777651e7a7b7170f0cdeb50329d
parent8ec1eb1edb03235fb39cc905fa286aebca2afec0 (diff)
Remove unused INetworkManagementService object
The method call for INetworkManagementService can use the parameter in the constructor, instead of a separate variable. The declared variable is not actually used. Remove the variable to reduce the unnecessary memory cost. Test: m Change-Id: I92153af9235969d6685b7693eac8f68ff36fdddf
-rw-r--r--services/core/java/com/android/server/connectivity/Vpn.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/connectivity/Vpn.java b/services/core/java/com/android/server/connectivity/Vpn.java
index b7ece2ea65b1..5905b7de5b6e 100644
--- a/services/core/java/com/android/server/connectivity/Vpn.java
+++ b/services/core/java/com/android/server/connectivity/Vpn.java
@@ -366,7 +366,6 @@ public class Vpn {
private PendingIntent mStatusIntent;
private volatile boolean mEnableTeardown = true;
- private final INetworkManagementService mNms;
private final INetd mNetd;
@VisibleForTesting
@GuardedBy("this")
@@ -626,7 +625,6 @@ public class Vpn {
mSubscriptionManager = mContext.getSystemService(SubscriptionManager.class);
mDeps = deps;
- mNms = netService;
mNetd = netd;
mUserId = userId;
mLooper = looper;