From 4aaf6610daacdde60793390f53614689525d9fb9 Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Fri, 9 Oct 2026 01:39:38 -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. 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 c43062b40357..4572297f44cc 100644 --- a/scripts/cxx-api/api-snapshots/ReactAndroidFrameworksCxx.api +++ b/scripts/cxx-api/api-snapshots/ReactAndroidFrameworksCxx.api @@ -6149,15 +6149,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 a3bfd7f91a8a..2c6a39ee539d 100644 --- a/scripts/cxx-api/api-snapshots/ReactAppleFrameworksCxx.api +++ b/scripts/cxx-api/api-snapshots/ReactAppleFrameworksCxx.api @@ -8325,15 +8325,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 cb763baece52..2a259ac975b4 100644 --- a/scripts/cxx-api/api-snapshots/ReactCommonFrameworksCxx.api +++ b/scripts/cxx-api/api-snapshots/ReactCommonFrameworksCxx.api @@ -4453,15 +4453,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;