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

Commit a143f443 authored by Vova Sharaienko's avatar Vova Sharaienko
Browse files

[StatsAtomPullService] Dead code elimination after flag finalization

Flag: NONE flag clean up after testing on Trunkfood
Bug: 331989853
Test: adb shell cmd stats print-stats | grep 10001
Change-Id: I8e875abdb90676b6f1e63fa1d8e22179cbf3577c
parent f195ac29
Loading
Loading
Loading
Loading
+3 −10
Original line number Diff line number Diff line
@@ -833,9 +833,7 @@ public class StatsPullAtomService extends SystemService {
                registerEventListeners();
            });
        } else if (phase == PHASE_THIRD_PARTY_APPS_CAN_START) {
            if (true) {
            initNetworkStatsManager();
            }
            BackgroundThread.getHandler().post(() -> {
                // Network stats related pullers can only be initialized after service is ready.
                initAndRegisterNetworkStatsPullers();
@@ -856,9 +854,6 @@ public class StatsPullAtomService extends SystemService {
                mContext.getSystemService(Context.TELEPHONY_SUBSCRIPTION_SERVICE);
        mStatsSubscriptionsListener = new StatsSubscriptionsListener(mSubscriptionManager);
        mStorageManager = (StorageManager) mContext.getSystemService(StorageManager.class);
        if (false) {
            initNetworkStatsManager();
        }

        // Initialize DiskIO
        mStoragedUidIoStatsReader = new StoragedUidIoStatsReader();
@@ -1040,11 +1035,9 @@ public class StatsPullAtomService extends SystemService {
     */
    @NonNull
    private NetworkStatsManager getNetworkStatsManager() {
        if (true) {
        if (mNetworkStatsManager == null) {
            throw new IllegalStateException("NetworkStatsManager is not ready");
        }
        }
        return mNetworkStatsManager;
    }