From 4557799af3201e88e36e0e0b8b57695d6b65372a Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Mon, 12 Oct 2026 01:35:21 -0700 Subject: [PATCH] Remove unused InspectorData (#58853) Summary: Changelog: [General][Removed] - Removed unused `InspectorData.h` `InspectorData` isn't referenced anywhere in the repository, I also couldn't find any usages in OSS. The only references I found have been removed in D67342500. Reviewed By: cipolleschi Differential Revision: D123412780 --- .../react/renderer/scheduler/InspectorData.h | 26 ------------------- .../react/renderer/scheduler/Scheduler.h | 1 - .../ReactAndroidFrameworksCxx.api | 9 ------- .../api-snapshots/ReactAppleFrameworksCxx.api | 9 ------- .../ReactCommonFrameworksCxx.api | 9 ------- 5 files changed, 54 deletions(-) delete mode 100644 packages/react-native/ReactCommon/react/renderer/scheduler/InspectorData.h diff --git a/packages/react-native/ReactCommon/react/renderer/scheduler/InspectorData.h b/packages/react-native/ReactCommon/react/renderer/scheduler/InspectorData.h deleted file mode 100644 index c008d9ef62a2..000000000000 --- a/packages/react-native/ReactCommon/react/renderer/scheduler/InspectorData.h +++ /dev/null @@ -1,26 +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. - */ - -#pragma once - -#include - -#include - -namespace facebook::react { - -struct InspectorData { - std::vector hierarchy; - int selectedIndex; - std::string fileName; - int lineNumber; - int columnNumber; - // TODO T97216348: remove folly::dynamic from InspectorData struct - folly::dynamic props; -}; - -} // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/renderer/scheduler/Scheduler.h b/packages/react-native/ReactCommon/react/renderer/scheduler/Scheduler.h index 929421f9ed8a..139df24d68d3 100644 --- a/packages/react-native/ReactCommon/react/renderer/scheduler/Scheduler.h +++ b/packages/react-native/ReactCommon/react/renderer/scheduler/Scheduler.h @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include diff --git a/scripts/cxx-api/api-snapshots/ReactAndroidFrameworksCxx.api b/scripts/cxx-api/api-snapshots/ReactAndroidFrameworksCxx.api index 22efde40f1ff..e1915564eeed 100644 --- a/scripts/cxx-api/api-snapshots/ReactAndroidFrameworksCxx.api +++ b/scripts/cxx-api/api-snapshots/ReactAndroidFrameworksCxx.api @@ -6097,15 +6097,6 @@ struct facebook::react::ImageRequestItem { public facebook::react::Tag tag; } -struct facebook::react::InspectorData { - public folly::dynamic props; - public int columnNumber; - public int lineNumber; - public int selectedIndex; - public std::string fileName; - public std::vector hierarchy; -} - struct facebook::react::JAssetManager : public facebook::jni::JavaClass { public static constexpr auto kJavaDescriptor; } diff --git a/scripts/cxx-api/api-snapshots/ReactAppleFrameworksCxx.api b/scripts/cxx-api/api-snapshots/ReactAppleFrameworksCxx.api index c42790be8cf4..11c7e6873789 100644 --- a/scripts/cxx-api/api-snapshots/ReactAppleFrameworksCxx.api +++ b/scripts/cxx-api/api-snapshots/ReactAppleFrameworksCxx.api @@ -8257,15 +8257,6 @@ struct facebook::react::ImageURLLoaderAttribution { public std::string queryRootName; } -struct facebook::react::InspectorData { - public folly::dynamic props; - public int columnNumber; - public int lineNumber; - public int selectedIndex; - public std::string fileName; - public std::vector hierarchy; -} - struct facebook::react::LayoutAnimation { public bool completed; public facebook::react::LayoutAnimationCallbackWrapper failureCallback; diff --git a/scripts/cxx-api/api-snapshots/ReactCommonFrameworksCxx.api b/scripts/cxx-api/api-snapshots/ReactCommonFrameworksCxx.api index d57cca83f16a..bcf1840858e3 100644 --- a/scripts/cxx-api/api-snapshots/ReactCommonFrameworksCxx.api +++ b/scripts/cxx-api/api-snapshots/ReactCommonFrameworksCxx.api @@ -4407,15 +4407,6 @@ struct facebook::react::FilterFunction { public std::variant parameters; } -struct facebook::react::InspectorData { - public folly::dynamic props; - public int columnNumber; - public int lineNumber; - public int selectedIndex; - public std::string fileName; - public std::vector hierarchy; -} - struct facebook::react::LayoutAnimation { public bool completed; public facebook::react::LayoutAnimationCallbackWrapper failureCallback;