diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-28 10:58:25 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 02:41:28 -0800 |
commit | 8b836b87ad4bb7e2bdbff38878d62f403d76d520 (patch) | |
tree | 8956dd99830192afcb4eb47194e5fda463b81c0e | |
parent | 2e26757e06b229171a086c32f9d91990990726d8 (diff) |
Remove obsolete -[NSString stringWithUTF8Bytes:length:withZone:inPool:].
-rw-r--r-- | MobileCydia.mm | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 2b8a9cc..35b5e7f 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -618,7 +618,6 @@ NSUInteger DOMNodeList$countByEnumeratingWithState$objects$count$(DOMNodeList *s /* Cydia NSString Additions {{{ */ @interface NSString (Cydia) + (NSString *) stringWithUTF8BytesNoCopy:(const char *)bytes length:(int)length; -+ (NSString *) stringWithUTF8Bytes:(const char *)bytes length:(int)length withZone:(NSZone *)zone inPool:(apr_pool_t *)pool; + (NSString *) stringWithUTF8Bytes:(const char *)bytes length:(int)length; - (NSComparisonResult) compareByPath:(NSString *)other; - (NSString *) stringByCachingURLWithCurrentCDN; @@ -631,12 +630,6 @@ NSUInteger DOMNodeList$countByEnumeratingWithState$objects$count$(DOMNodeList *s return [[[NSString alloc] initWithBytesNoCopy:const_cast<char *>(bytes) length:length encoding:NSUTF8StringEncoding freeWhenDone:NO] autorelease]; } -+ (NSString *) stringWithUTF8Bytes:(const char *)bytes length:(int)length withZone:(NSZone *)zone inPool:(apr_pool_t *)pool { - char *data(reinterpret_cast<char *>(apr_palloc(pool, length))); - memcpy(data, bytes, length); - return [[[NSString allocWithZone:zone] initWithBytesNoCopy:data length:length encoding:NSUTF8StringEncoding freeWhenDone:NO] autorelease]; -} - + (NSString *) stringWithUTF8Bytes:(const char *)bytes length:(int)length { return [[[NSString alloc] initWithBytes:bytes length:length encoding:NSUTF8StringEncoding] autorelease]; } |