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

Commit 3b4e1e99 authored by Al Sutton's avatar Al Sutton
Browse files

Remove unused code

Change-Id: I4f31141272facb092a18ffa28e582523c3eeef88
Test: atest ArrayUtilsTest
parent f80171ef
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -335,18 +335,12 @@ public class ArrayUtils {
        }

        int totalLength = 0;
        int maxLength = 0;
        T[] maxLengthArray = arrays[0];
        for (T[] item : arrays) {
            if (item == null) {
                continue;
            }

            totalLength += item.length;
            if (item.length > maxLength) {
                maxLengthArray = item;
                maxLength = item.length;
            }
        }

        // Optimization for entirely empty arrays.