From 8386a9e4f16893e9c1880db571a38872bcce88b2 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Fri, 26 Sep 2025 14:07:25 -0700 Subject: [PATCH] Delete ReactVirtualTextShadowNode (#53948) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/53948 ReactVirtualTextShadowNode is par of legacy architecture and unused, let's delete it changelog: [internal] internal Reviewed By: alanleedev Differential Revision: D83187955 fbshipit-source-id: d8bd0aa9cece68c7b4a4d5674ce97a8ef43a7fc5 --- .../views/text/ReactVirtualTextShadowNode.kt | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactVirtualTextShadowNode.kt diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactVirtualTextShadowNode.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactVirtualTextShadowNode.kt deleted file mode 100644 index 3d3108bfddc..00000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactVirtualTextShadowNode.kt +++ /dev/null @@ -1,34 +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. - */ - -@file:Suppress("DEPRECATION") - -package com.facebook.react.views.text - -import com.facebook.react.common.annotations.internal.LegacyArchitecture -import com.facebook.react.common.annotations.internal.LegacyArchitectureLogLevel -import com.facebook.react.common.annotations.internal.LegacyArchitectureLogger - -/** A virtual text node. */ -@LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR) -@Deprecated( - message = "This class is part of Legacy Architecture and will be removed in a future release", - level = DeprecationLevel.WARNING, -) -internal class ReactVirtualTextShadowNode : ReactBaseTextShadowNode() { - - override fun isVirtual(): Boolean = true - - internal companion object { - init { - LegacyArchitectureLogger.assertLegacyArchitecture( - "ReactVirtualTextShadowNode", - LegacyArchitectureLogLevel.ERROR, - ) - } - } -}