mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Cleanup
This commit is contained in:
parent
e658555ef4
commit
54e3543a6f
@ -11,19 +11,6 @@
|
|||||||
- (id)customSafeObjectAtIndex:(NSUInteger)index;
|
- (id)customSafeObjectAtIndex:(NSUInteger)index;
|
||||||
@end
|
@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 kNBSRCDirectoryName @"src"
|
||||||
|
|
||||||
#define INDENT_TAB @" "
|
#define INDENT_TAB @" "
|
||||||
|
@ -10,20 +10,6 @@
|
|||||||
- (id)customSafeObjectAtIndex:(NSUInteger)index;
|
- (id)customSafeObjectAtIndex:(NSUInteger)index;
|
||||||
@end
|
@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
|
@implementation NBPhoneNumberDesc
|
||||||
|
|
||||||
- (id)initWithData:(id)data
|
- (id)initWithData:(id)data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user