Delete ArrayUtils from codebase (#38251)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38251

I'm deleting ArrayUtils from codebase, this file is not used neither internally or externally (as analyzed in github source)

I believe it's very safe to delete without following any deprecation process

changelog: [Android][Deleted] Delete ArrayUtils from codebase

Reviewed By: christophpurrer

Differential Revision: D47306287

fbshipit-source-id: 1f36ca46db107e21dc55191528cacf6f81cf63ed
This commit is contained in:
David Vacca
2023-07-08 16:10:15 -07:00
committed by Facebook GitHub Bot
parent e58add29a0
commit 50f620a1ad
@@ -1,27 +0,0 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.common;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Nullable;
public class ArrayUtils {
public static float[] copyArray(@Nullable float[] array) {
return array == null ? null : Arrays.copyOf(array, array.length);
}
public static int[] copyListToArray(List<Integer> list) {
int[] array = new int[list.size()];
for (int t = 0; t < list.size(); t++) {
array[t] = list.get(t);
}
return array;
}
}