removed mods directory from the ATutor codebase
[atutor.git] / mods / atsocial_iphone_app / Classes / QAWebController.m
diff --git a/mods/atsocial_iphone_app/Classes/QAWebController.m b/mods/atsocial_iphone_app/Classes/QAWebController.m
deleted file mode 100644 (file)
index 75db3be..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-    //
-//  QAWebController.m
-//  ATutor
-//
-//  Created by Quang Anh Do on 30/05/2010.
-//  Copyright 2010 Quang Anh Do. All rights reserved.
-//
-
-#import "QAWebController.h"
-
-
-@implementation QAWebController
-
-@synthesize oAuthDelegate;
-
-- (void)dealloc {
-       [oAuthDelegate release];
-       
-       [super dealloc];
-}
-
-- (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType {
-       // Ignore normal URLs
-       if (![[[request URL] scheme] isEqualToString:@"internal"]) {
-               return [super webView:webView shouldStartLoadWithRequest:request navigationType:navigationType];
-       }       
-       
-       // OAuth
-       if ([[[request URL] host] isEqualToString:@"finish-auth"]) {
-               if (oAuthDelegate && [oAuthDelegate respondsToSelector:@selector(didFinishAuthorizationInWebViewController:)]) {
-                       [oAuthDelegate performSelector:@selector(didFinishAuthorizationInWebViewController:) withObject:self];
-               }
-       }
-       
-       return YES;
-}
-
-@end