Remove unused code

Change-Id: I4f31141272facb092a18ffa28e582523c3eeef88
Test: atest ArrayUtilsTest
This commit is contained in:
Al Sutton
2019-08-05 11:07:06 +01:00
parent f80171ef5c
commit 3b4e1e9931

View File

@@ -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.