remove unneeded weakness
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/63ac782b Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/63ac782b Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/63ac782b Branch: refs/heads/master Commit: 63ac782b323fe63da16f38de1999e0ba87c2e975 Parents: 7f3a0a5 Author: Jesse MacFadyen <[email protected]> Authored: Tue Nov 17 16:56:35 2015 -0800 Committer: Jesse MacFadyen <[email protected]> Committed: Tue Nov 17 16:56:35 2015 -0800 ---------------------------------------------------------------------- src/ios/CDVCamera.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/63ac782b/src/ios/CDVCamera.m ---------------------------------------------------------------------- diff --git a/src/ios/CDVCamera.m b/src/ios/CDVCamera.m index d5d3ba4..57f4924 100644 --- a/src/ios/CDVCamera.m +++ b/src/ios/CDVCamera.m @@ -109,14 +109,12 @@ static NSString* toBase64(NSData* data) { - (NSURL*) urlTransformer:(NSURL*)url { NSURL* urlToTransform = url; - __weak CDVCamera* weakSelf = self; // for backwards compatibility - we check if this property is there SEL sel = NSSelectorFromString(@"urlTransformer"); if ([self.commandDelegate respondsToSelector:sel]) { - // grab the block from the commandDelegate - NSURL* (^urlTransformer)(NSURL*) = ((id(*)(id, SEL))objc_msgSend)(weakSelf.commandDelegate, sel); + NSURL* (^urlTransformer)(NSURL*) = ((id(*)(id, SEL))objc_msgSend)(self.commandDelegate, sel); // if block is not null, we call it if (urlTransformer) { urlToTransform = urlTransformer(url); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
