From 5697d923a05119314b4cfcd556cb243986637764 Mon Sep 17 00:00:00 2001 From: Parsa Nasirimehr Date: Sun, 20 Oct 2024 18:28:11 -0700 Subject: [PATCH] fix(Android) - remove some unused imports in canvas utils (#47132) Summary: Was working on something, saw that CanvasUtils has some unused imports. Figured i'd send a PR to clean up. ## Changelog: [INTERNAL] [FIXED] - Cleanup CanvasUtils imports Pull Request resolved: https://github.com/facebook/react-native/pull/47132 Test Plan: Ran yarn test: Screenshot 2024-10-19 at 22 54 13 Also tried running ./gradlew test, but it appears it is not having fun with my Node version (18.20.3), so `createBundleHermesReleaseJsAndAssets` randomly fails, to be investigated why: Screenshot 2024-10-19 at 22 56 02 Reviewed By: NickGerleman Differential Revision: D64663918 Pulled By: cortinico fbshipit-source-id: a681d6ee76dfcbc56889e76da6cf8ea11907bdf2 --- .../main/java/com/facebook/react/views/view/CanvasUtil.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/CanvasUtil.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/CanvasUtil.kt index d3c41676e67e1d..cca90cc2e9d3dd 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/CanvasUtil.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/CanvasUtil.kt @@ -10,11 +10,6 @@ package com.facebook.react.views.view import android.annotation.SuppressLint import android.graphics.Canvas import android.os.Build -import android.os.Build.VERSION -import android.os.Build.VERSION.SDK_INT -import android.os.Build.VERSION_CODES -import android.os.Build.VERSION_CODES.P -import android.os.Build.VERSION_CODES.Q import java.lang.reflect.InvocationTargetException import java.lang.reflect.Method