Skip to content

Commit 8b454c7

Browse files
authored
Remove reachability check (#23983)
1 parent 03009da commit 8b454c7

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

WordPress/Classes/ViewRelated/Blog/Sharing/SharingConnectionsViewController.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,6 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
232232

233233
- (void)handleConnectTapped:(NSIndexPath *)indexPath
234234
{
235-
if (![ReachabilityUtils isInternetReachable]) {
236-
[ReachabilityUtils showAlertNoInternetConnection];
237-
return;
238-
}
239-
240235
if ([UIDevice isPad]) {
241236
UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
242237
self.helper.popoverSourceView = cell.textLabel;

WordPress/Classes/ViewRelated/Blog/Sharing/SharingDetailViewController.m

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,6 @@ - (void)updateSharedGlobally:(BOOL)shared
238238

239239
- (void)reconnectPublicizeConnection
240240
{
241-
if (![ReachabilityUtils isInternetReachable]) {
242-
[ReachabilityUtils showAlertNoInternetConnection];
243-
return;
244-
}
245-
246241
SharingService *sharingService = [[SharingService alloc] initWithContextManager:[ContextManager sharedInstance]];
247242

248243
__weak __typeof(self) weakSelf = self;
@@ -273,11 +268,6 @@ - (void)disconnectPublicizeConnection
273268

274269
- (void)promptToConfirmDisconnect
275270
{
276-
if (![ReachabilityUtils isInternetReachable]) {
277-
[ReachabilityUtils showAlertNoInternetConnection];
278-
return;
279-
}
280-
281271
NSString *message = NSLocalizedString(@"Disconnecting this account means published posts will no longer be automatically shared to %@", @"Explanatory text for the user. The `%@` is a placeholder for the name of a third-party sharing service.");
282272
message = [NSString stringWithFormat:message, self.publicizeConnection.label];
283273
UIAlertController *alert = [UIAlertController alertControllerWithTitle:nil

0 commit comments

Comments
 (0)