Skip to content

Commit 5863b56

Browse files
Ziqi Chenfacebook-github-bot
Ziqi Chen
authored andcommitted
deleted UI Action Sheet Delegate Methods
Reviewed By: PeteTheHeat Differential Revision: D8191111 fbshipit-source-id: 39867683cf5e0cdf8a94a76269d939b5ecf6bbd4
1 parent d8bf46a commit 5863b56

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj/project.pbxproj

-2
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@
141141
WARNING_CFLAGS = (
142142
"-Werror",
143143
"-Wall",
144-
"-Wno-deprecated-declarations",
145144
);
146145
};
147146
name = Debug;
@@ -183,7 +182,6 @@
183182
WARNING_CFLAGS = (
184183
"-Werror",
185184
"-Wall",
186-
"-Wno-deprecated-declarations",
187185
);
188186
};
189187
name = Release;

Libraries/ActionSheetIOS/RCTActionSheetManager.m

-13
Original file line numberDiff line numberDiff line change
@@ -186,17 +186,4 @@ - (CGRect)sourceRectInView:(UIView *)sourceView
186186
shareController.view.tintColor = [RCTConvert UIColor:options[@"tintColor"]];
187187
}
188188

189-
#pragma mark UIActionSheetDelegate Methods
190-
191-
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
192-
{
193-
RCTResponseSenderBlock callback = [_callbacks objectForKey:actionSheet];
194-
if (callback) {
195-
callback(@[@(buttonIndex)]);
196-
[_callbacks removeObjectForKey:actionSheet];
197-
} else {
198-
RCTLogWarn(@"No callback registered for action sheet: %@", actionSheet.title);
199-
}
200-
}
201-
202189
@end

0 commit comments

Comments
 (0)