Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acbf628b authored by Chiachang Wang's avatar Chiachang Wang
Browse files

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
parent 8ec1eb1e
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;