From 50f620a1ad8e925a46d2aa8e6439d5ce6f4f2ce4 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Sat, 8 Jul 2023 16:10:15 -0700 Subject: [PATCH] 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 --- .../com/facebook/react/common/ArrayUtils.java | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/ArrayUtils.java diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/ArrayUtils.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/ArrayUtils.java deleted file mode 100644 index def6056917f..00000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/ArrayUtils.java +++ /dev/null @@ -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 list) { - int[] array = new int[list.size()]; - for (int t = 0; t < list.size(); t++) { - array[t] = list.get(t); - } - return array; - } -}