diff --git a/src/Contacts/PhoneNumber.m b/src/Contacts/PhoneNumber.m index 622a7c4f3..bf1df44e0 100644 --- a/src/Contacts/PhoneNumber.m +++ b/src/Contacts/PhoneNumber.m @@ -169,18 +169,6 @@ static NSString *const RPDefaultsKeyPhoneNumberCanonical = @"RPDefaultsKeyPhoneN callingCodeForLocalNumber, sanitizedString], [self defaultRegionCode]); - - // It's gratuitous to try all country codes associated with a given - // calling code, but it can't hurt and this isn't a performance - // hotspot. - NSArray *possibleLocalCountryCodes = [PhoneNumberUtil.sharedUtil - countryCodesFromCallingCode:[NSString stringWithFormat:@"+%@", callingCodeForLocalNumber]]; - for (NSString *countryCode in possibleLocalCountryCodes) { - tryParsingWithCountryCode([NSString stringWithFormat:@"+%@%@", - callingCodeForLocalNumber, - sanitizedString], - countryCode); - } } }