From df0e479644f5ede1a0bd2eba8e02404f2180c26c Mon Sep 17 00:00:00 2001 From: David Vacca Date: Thu, 10 Apr 2025 17:57:13 -0700 Subject: [PATCH] Delete InvalidIteratorException Summary: InvalidIteratorException is not used in java, kotlin nor C++. This diff just removes this class This is not a breaking change due to the lack of usages changelog: [internal] internal Reviewed By: javache Differential Revision: D72090837 fbshipit-source-id: 75aa4a8d2c1abbeb32bd38e5e60cbf7f04be823e --- .../react/bridge/InvalidIteratorException.kt | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/InvalidIteratorException.kt diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/InvalidIteratorException.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/InvalidIteratorException.kt deleted file mode 100644 index 5a44e2b5251..00000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/InvalidIteratorException.kt +++ /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.bridge - -import com.facebook.proguard.annotations.DoNotStrip -import com.facebook.react.common.annotations.internal.LegacyArchitecture -import com.facebook.react.common.annotations.internal.LegacyArchitectureLogger - -/** - * Exception thrown by [ReadableMapKeySetIterator.nextKey] when the iterator tries to iterate over - * elements after the end of the key set. - */ -@DoNotStrip -@LegacyArchitecture -internal class InvalidIteratorException @DoNotStrip constructor(msg: String) : - RuntimeException(msg) { - private companion object { - init { - LegacyArchitectureLogger.assertLegacyArchitecture("InvalidIteratorException") - } - } -}