Merge pull request #1091 from ksuther/remove-unused-function

Remove unused escapeURLComponent
This commit is contained in:
Kornel authored and GitHub committed 2017-06-10 23:38:38 +01:00
commit c3c2e51a08
1 file changed
-7
-7
View File
@@ -357,13 +357,6 @@ static NSMutableDictionary *sharedUpdaters = nil;
}
}
static NSString *escapeURLComponent(NSString *str) {
return [[[[str stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]
stringByReplacingOccurrencesOfString:@"=" withString:@"%3d"]
stringByReplacingOccurrencesOfString:@"&" withString:@"%26"]
stringByReplacingOccurrencesOfString:@"+" withString:@"%2b"];
}
- (BOOL)updater:(SPUUpdater *)__unused updater shouldPostponeRelaunchForUpdate:(SUAppcastItem *)item untilInvokingBlock:(void (^)(void))installHandler
{
BOOL shouldPostponeRelaunch = NO;