Removed unused references to connectivityChange(d)

pull/19663/head
Tony Lu 6 years ago
parent 81acc3ce3b
commit b8a0271843
  1. 19
      src/objective-c/GRPCClient/GRPCCall.m
  2. 4
      src/objective-c/GRPCClient/private/GRPCChannelPool.m

@ -892,23 +892,4 @@ const char *kCFStreamVarName = "grpc_cfstream";
}
}
- (void)connectivityChanged:(NSNotification *)note {
// Cancel underlying call upon this notification.
// Retain because connectivity manager only keeps weak reference to GRPCCall.
__strong GRPCCall *strongSelf = self;
if (strongSelf) {
@synchronized(strongSelf) {
[_wrappedCall cancel];
[strongSelf
finishWithError:[NSError errorWithDomain:kGRPCErrorDomain
code:GRPCErrorCodeUnavailable
userInfo:@{
NSLocalizedDescriptionKey : @"Connectivity lost."
}]];
}
strongSelf->_requestWriter.state = GRXWriterStateFinished;
}
}
@end

@ -260,10 +260,6 @@ static const NSTimeInterval kDefaultChannelDestroyDelay = 30;
}
}
- (void)connectivityChange:(NSNotification *)note {
[self disconnectAllChannels];
}
@end
@implementation GRPCChannelPool (Test)

Loading…
Cancel
Save