From a8cfc40de95222fb8af23ffab031d372c5f56fab Mon Sep 17 00:00:00 2001 From: Suhail Rashid Bhat Date: Fri, 10 Oct 2014 19:31:16 +0530 Subject: [PATCH] Unnecessary method removed. Keeping reachabilityWithHostName no two methods with same name. --- Reachability.m | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Reachability.m b/Reachability.m index 7b09278..924f8d8 100644 --- a/Reachability.m +++ b/Reachability.m @@ -101,14 +101,9 @@ @implementation Reachability #pragma mark - Class Constructor Methods +(Reachability*)reachabilityWithHostName:(NSString*)hostname -{ - return [Reachability reachabilityWithHostname:hostname]; -} - -+(Reachability*)reachabilityWithHostname:(NSString*)hostname { SCNetworkReachabilityRef ref = SCNetworkReachabilityCreateWithName(NULL, [hostname UTF8String]); - if (ref) + if (ref) { id reachability = [[self alloc] initWithReachabilityRef:ref]; @@ -119,7 +114,7 @@ +(Reachability*)reachabilityWithHostname:(NSString*)hostname #endif } - + return nil; }