Skip to content

Commit f77b604

Browse files
committed
chore: use objc++
1 parent 92b9859 commit f77b604

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

ios/RNTPTDocumentViewManager.m

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2334,27 +2334,6 @@ -(void)openOutlineListForDocumentViewTag:(NSNumber *)tag
23342334
}
23352335
#endif
23362336

2337-
#if RCT_NEW_ARCH_ENABLED
2338-
- (void)openAnnotationListForDocumentView:(RNTPTDocumentView *)documentView
2339-
{
2340-
if (documentView) {
2341-
[documentView openAnnotationList];
2342-
} else {
2343-
@throw [NSException exceptionWithName:NSInvalidArgumentException reason:@"Unable to find DocumentView for tag" userInfo:nil];
2344-
}
2345-
}
2346-
#else
2347-
- (void)openAnnotationListForDocumentViewTag:(NSNumber *)tag
2348-
{
2349-
RNTPTDocumentView *documentView = self.documentViews[tag];
2350-
if (documentView) {
2351-
[documentView openAnnotationList];
2352-
} else {
2353-
@throw [NSException exceptionWithName:NSInvalidArgumentException reason:@"Unable to find DocumentView for tag" userInfo:nil];
2354-
}
2355-
}
2356-
#endif
2357-
23582337
#if RCT_NEW_ARCH_ENABLED
23592338
- (void)openThumbnailsViewForDocumentView:(RNTPTDocumentView *)documentView
23602339
{
@@ -3087,25 +3066,4 @@ - (void)setAnnotationDisplayAuthorMapForDocumentViewTag: (NSNumber *)tag authorM
30873066
}
30883067
#endif
30893068

3090-
#if RCT_NEW_ARCH_ENABLED
3091-
- (void)openAnnotationListForDocumentView:(RNTPTDocumentView *)documentView
3092-
{
3093-
if (documentView) {
3094-
[documentView openAnnotationList];
3095-
} else {
3096-
@throw [NSException exceptionWithName:NSInvalidArgumentException reason:@"Unable to find DocumentView for tag" userInfo:nil];
3097-
}
3098-
}
3099-
#else
3100-
- (void)openAnnotationListForDocumentViewTag:(NSNumber *)tag
3101-
{
3102-
RNTPTDocumentView *documentView = self.documentViews[tag];
3103-
if (documentView) {
3104-
[documentView openAnnotationList];
3105-
} else {
3106-
@throw [NSException exceptionWithName:NSInvalidArgumentException reason:@"Unable to find DocumentView for tag" userInfo:nil];
3107-
}
3108-
}
3109-
#endif
3110-
31113069
@end

0 commit comments

Comments
 (0)