From ca0381b71676ad4d59c8d4777eed6fe4fcf6f48a Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Wed, 10 Jun 2026 09:17:52 -0700 Subject: [PATCH] Remove dead file-local typedef RCTJSCSetOptionType in RCTPerfMonitor Summary: X-link: https://github.com/facebook/react-native/pull/57139 `RCTJSCSetOptionType` was a file-local `using` alias (`BOOL (*)(const char *)`) in `RCTPerfMonitor.mm` that was never referenced. The concrete `RCTJSCSetOption` function is called directly at its two call sites; no code ever used the function-pointer typedef. This removes the dead alias. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D108012902 fbshipit-source-id: 2d8b207c6d216356a5b4eef9b71effda47db5744 --- packages/react-native/React/CoreModules/RCTPerfMonitor.mm | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/react-native/React/CoreModules/RCTPerfMonitor.mm b/packages/react-native/React/CoreModules/RCTPerfMonitor.mm index 3195fdaffb0..c33af88055a 100644 --- a/packages/react-native/React/CoreModules/RCTPerfMonitor.mm +++ b/packages/react-native/React/CoreModules/RCTPerfMonitor.mm @@ -39,8 +39,6 @@ static NSString *const RCTPerfMonitorCellIdentifier = @"RCTPerfMonitorCellIdenti static const CGFloat RCTPerfMonitorBarHeight = 50; static const CGFloat RCTPerfMonitorExpandHeight = 250; -using RCTJSCSetOptionType = BOOL (*)(const char *); - NSArray *LabelsForRCTPerformanceLoggerTags(); static BOOL RCTJSCSetOption(const char *option)