Skip to content

Commit 1824ec7

Browse files
authored
Remove some leftover iOS version availability checks (#19744)
2 parents 163b96e + f7495e7 commit 1824ec7

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

WordPress/Classes/ViewRelated/Me/Views/Header/MeHeaderView.m

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,21 +261,21 @@ - (IBAction)handleHeaderPress:(UIGestureRecognizer *)sender
261261
#pragma mark - Drop Interaction Handler
262262

263263
- (BOOL)dropInteraction:(UIDropInteraction *)interaction
264-
canHandleSession:(id<UIDropSession>)session API_AVAILABLE(ios(11.0))
264+
canHandleSession:(id<UIDropSession>)session
265265
{
266266
BOOL isAnImage = [session canLoadObjectsOfClass:[UIImage self]];
267267
BOOL isSingleImage = [session.items count] == 1;
268268
return (isAnImage && isSingleImage);
269269
}
270270

271271
- (void)dropInteraction:(UIDropInteraction *)interaction
272-
sessionDidEnter:(id<UIDropSession>)session API_AVAILABLE(ios(11.0))
272+
sessionDidEnter:(id<UIDropSession>)session
273273
{
274274
[self.gravatarImageView depressSpringAnimation:nil];
275275
}
276276

277277
- (UIDropProposal *)dropInteraction:(UIDropInteraction *)interaction
278-
sessionDidUpdate:(id<UIDropSession>)session API_AVAILABLE(ios(11.0))
278+
sessionDidUpdate:(id<UIDropSession>)session
279279
{
280280
CGPoint dropLocation = [session locationInView:self.gravatarDropTarget];
281281

@@ -291,7 +291,7 @@ - (UIDropProposal *)dropInteraction:(UIDropInteraction *)interaction
291291
}
292292

293293
- (void)dropInteraction:(UIDropInteraction *)interaction
294-
performDrop:(id<UIDropSession>)session API_AVAILABLE(ios(11.0))
294+
performDrop:(id<UIDropSession>)session
295295
{
296296
[self setShowsActivityIndicator:YES];
297297
[session loadObjectsOfClass:[UIImage self] completion:^(NSArray *images) {
@@ -303,19 +303,19 @@ - (void)dropInteraction:(UIDropInteraction *)interaction
303303
}
304304

305305
- (void)dropInteraction:(UIDropInteraction *)interaction
306-
concludeDrop:(id<UIDropSession>)session API_AVAILABLE(ios(11.0))
306+
concludeDrop:(id<UIDropSession>)session
307307
{
308308
[self.gravatarImageView normalizeSpringAnimation:nil];
309309
}
310310

311311
- (void)dropInteraction:(UIDropInteraction *)interaction
312-
sessionDidExit:(id<UIDropSession>)session API_AVAILABLE(ios(11.0))
312+
sessionDidExit:(id<UIDropSession>)session
313313
{
314314
[self.gravatarImageView normalizeSpringAnimation:nil];
315315
}
316316

317317
- (void)dropInteraction:(UIDropInteraction *)interaction
318-
sessionDidEnd:(id<UIDropSession>)session API_AVAILABLE(ios(11.0))
318+
sessionDidEnd:(id<UIDropSession>)session
319319
{
320320
[self.gravatarImageView normalizeSpringAnimation:nil];
321321
}

WordPress/Classes/ViewRelated/Stats/Today Widgets/WidgetStyles.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@ class WidgetStyles: NSObject {
1010

1111
static let separatorColor: UIColor = .separator
1212

13-
static var separatorVibrancyEffect: UIVibrancyEffect = {
14-
if #available(iOS 13, *) {
15-
return .widgetEffect(forVibrancyStyle: .separator)
16-
} else {
17-
return .widgetSecondary()
18-
}
19-
}()
20-
2113
static func configureSeparator(_ separator: UIView) {
2214
// Both colors are need for the vibrancy effect.
2315
separator.backgroundColor = separatorColor

0 commit comments

Comments
 (0)