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

Commit c098291b authored by Chalard Jean's avatar Chalard Jean
Browse files

Remove a useless parameter.

This argument is useless because all its callers pass the same
value : false.

Test: runtest
Change-Id: Id921caa4ffadef535a5bbcfea052283a07320b28
parent 6823744f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -971,7 +971,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
        throw new IllegalStateException("No free netIds");
    }

    private NetworkState getFilteredNetworkState(int networkType, int uid, boolean ignoreBlocked) {
    private NetworkState getFilteredNetworkState(int networkType, int uid) {
        if (mLegacyTypeTracker.isTypeSupported(networkType)) {
            final NetworkAgentInfo nai = mLegacyTypeTracker.getNetworkForType(networkType);
            final NetworkState state;
@@ -989,7 +989,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
                state = new NetworkState(info, new LinkProperties(), capabilities,
                        null, null, null);
            }
            filterNetworkStateForUid(state, uid, ignoreBlocked);
            filterNetworkStateForUid(state, uid, false);
            return state;
        } else {
            return NetworkState.EMPTY;
@@ -1194,7 +1194,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
                return state.networkInfo;
            }
        }
        final NetworkState state = getFilteredNetworkState(networkType, uid, false);
        final NetworkState state = getFilteredNetworkState(networkType, uid);
        return state.networkInfo;
    }

@@ -1229,7 +1229,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
    public Network getNetworkForType(int networkType) {
        enforceAccessPermission();
        final int uid = Binder.getCallingUid();
        NetworkState state = getFilteredNetworkState(networkType, uid, false);
        NetworkState state = getFilteredNetworkState(networkType, uid);
        if (!isNetworkWithLinkPropertiesBlocked(state.linkProperties, uid, false)) {
            return state.network;
        }