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") - } - } -}