From 0aeaa60a23b7ac5e41301bb570982ef5a6ab2722 Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Wed, 29 Aug 2012 10:55:34 -0700 Subject: [PATCH] Removing extern declaration for AFURLEncodedStringFromStringWithEncoding function (CFURLCreateStringByAddingPercentEscapes should be used instead) --- AFNetworking/AFHTTPClient.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/AFNetworking/AFHTTPClient.h b/AFNetworking/AFHTTPClient.h index 84d5965..296da7a 100644 --- a/AFNetworking/AFHTTPClient.h +++ b/AFNetworking/AFHTTPClient.h @@ -58,18 +58,6 @@ typedef enum { AFPropertyListParameterEncoding, } AFHTTPClientParameterEncoding; -/** - Returns a string, replacing certain characters with the equivalent percent escape sequence based on the specified encoding. - - @param string The string to URL encode - @param encoding The encoding to use for the replacement. If you are uncertain of the correct encoding, you should use UTF-8 (NSUTF8StringEncoding), which is the encoding designated by RFC 3986 as the correct encoding for use in URLs. - - @discussion The characters escaped are all characters that are not legal URL characters (based on RFC 3986), including any whitespace, punctuation, or special characters. - - @return A URL-encoded string. If it does not need to be modified (no percent escape sequences are missing), this function may merely return string argument. - */ -extern NSString * AFURLEncodedStringFromStringWithEncoding(NSString *string, NSStringEncoding encoding); - /** Returns a query string constructed by a set of parameters, using the specified encoding.