From 54e3543a6f29623475c999da9e47a41a8ed9e1d7 Mon Sep 17 00:00:00 2001 From: Ali <> Date: Tue, 21 Sep 2021 01:14:05 +0300 Subject: [PATCH] Cleanup --- .../Sources/NBPhoneMetaDataGenerator.m | 13 ------------- .../libphonenumber/Sources/NBPhoneNumberDesc.m | 14 -------------- 2 files changed, 27 deletions(-) diff --git a/submodules/libphonenumber/Sources/NBPhoneMetaDataGenerator.m b/submodules/libphonenumber/Sources/NBPhoneMetaDataGenerator.m index de37b66221..12c1f0575f 100755 --- a/submodules/libphonenumber/Sources/NBPhoneMetaDataGenerator.m +++ b/submodules/libphonenumber/Sources/NBPhoneMetaDataGenerator.m @@ -11,19 +11,6 @@ - (id)customSafeObjectAtIndex:(NSUInteger)index; @end -@implementation NSArray (NBAdditions) -- (id)customSafeObjectAtIndex:(NSUInteger)index { - @synchronized(self) { - if (index >= [self count]) return nil; - id res = [self objectAtIndex:index]; - if (res == nil || (NSNull*)res == [NSNull null]) { - return nil; - } - return res; - } -} -@end - #define kNBSRCDirectoryName @"src" #define INDENT_TAB @" " diff --git a/submodules/libphonenumber/Sources/NBPhoneNumberDesc.m b/submodules/libphonenumber/Sources/NBPhoneNumberDesc.m index cbc3d0947e..ca92a84e1a 100755 --- a/submodules/libphonenumber/Sources/NBPhoneNumberDesc.m +++ b/submodules/libphonenumber/Sources/NBPhoneNumberDesc.m @@ -10,20 +10,6 @@ - (id)customSafeObjectAtIndex:(NSUInteger)index; @end -@implementation NSArray (NBAdditions) -- (id)customSafeObjectAtIndex:(NSUInteger)index { - @synchronized(self) { - if (index >= [self count]) return nil; - id res = [self objectAtIndex:index]; - if (res == nil || (NSNull*)res == [NSNull null]) { - return nil; - } - return res; - } -} -@end - - @implementation NBPhoneNumberDesc - (id)initWithData:(id)data