diff options
author | cyBerta <cyberta@riseup.net> | 2022-12-21 12:36:02 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2022-12-21 12:36:02 +0100 |
commit | 24be5fbba912258f9d1e3d4cd87fb0f20380a6c0 (patch) | |
tree | 0878a3285e8c66f4041d386de6fd279476ba2ff6 /app/src/main/java/de/blinkt/openvpn/core/NetworkSpace.java | |
parent | 089f95753072514259ab4c4531a41f53e1ce32d4 (diff) |
remove dead code related to deprecated Android versions
Diffstat (limited to 'app/src/main/java/de/blinkt/openvpn/core/NetworkSpace.java')
-rw-r--r-- | app/src/main/java/de/blinkt/openvpn/core/NetworkSpace.java | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/app/src/main/java/de/blinkt/openvpn/core/NetworkSpace.java b/app/src/main/java/de/blinkt/openvpn/core/NetworkSpace.java index 860897db..457ae971 100644 --- a/app/src/main/java/de/blinkt/openvpn/core/NetworkSpace.java +++ b/app/src/main/java/de/blinkt/openvpn/core/NetworkSpace.java @@ -336,35 +336,6 @@ public class NetworkSpace { ips.add(ia); } - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) { - // Include postive routes from the original set under < 4.4 since these might overrule the local - // network but only if no smaller negative route exists - for (IpAddress origIp : mIpAddresses) { - if (!origIp.included) - continue; - - // The netspace exists - if (ipsSorted.contains(origIp)) - continue; - - boolean skipIp = false; - // If there is any smaller net that is excluded we may not add the positive route back - - for (IpAddress calculatedIp : ipsSorted) { - if (!calculatedIp.included && origIp.containsNet(calculatedIp)) { - skipIp = true; - break; - } - } - if (skipIp) - continue; - - // It is safe to include the IP - ips.add(origIp); - } - - } - return ips; } |