From 899da15a31e93b168fe3629ed005e2b2f459eeda Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Mon, 14 Feb 2022 11:00:14 -0800 Subject: [PATCH] Remove unused _callbacks hashmap (#33097) Summary: Stumbled upon this unused code. ## Changelog [Internal] [Fixed] - Remove unused _callbacks hashmap Pull Request resolved: https://github.com/facebook/react-native/pull/33097 Test Plan: Test it still builds Reviewed By: philIip Differential Revision: D34215314 Pulled By: ShikaSD fbshipit-source-id: 7357a9be725d57b37f697f7222b95c1fd1d9f67c --- React/CoreModules/RCTActionSheetManager.mm | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/React/CoreModules/RCTActionSheetManager.mm b/React/CoreModules/RCTActionSheetManager.mm index ee3c7b69b44..08c5e68355f 100644 --- a/React/CoreModules/RCTActionSheetManager.mm +++ b/React/CoreModules/RCTActionSheetManager.mm @@ -23,11 +23,7 @@ using namespace facebook::react; @interface RCTActionSheetManager () @end -@implementation RCTActionSheetManager { - // Use NSMapTable, as UIAlertViews do not implement - // which is required for NSDictionary keys - NSMapTable *_callbacks; -} +@implementation RCTActionSheetManager RCT_EXPORT_MODULE() @@ -64,10 +60,6 @@ RCT_EXPORT_METHOD(showActionSheetWithOptions return; } - if (!_callbacks) { - _callbacks = [NSMapTable strongToStrongObjectsMapTable]; - } - NSString *title = options.title(); NSString *message = options.message(); NSArray *buttons = RCTConvertOptionalVecToArray(options.options(), ^id(NSString *element) {