Skip to content

Commit bceb17a

Browse files
jcesarmobilemlynch
authored andcommitted
fix(iOS): Remove unused code (#247)
1 parent 0dee0cf commit bceb17a

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/ios/CDVWKWebViewEngine.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
extern NSString * const IONIC_SCHEME;
2929
extern NSString * const IONIC_FILE_SCHEME;
3030

31-
-(void)setServerPath:(NSString *) path;
3231
-(void)setServerBasePath:(CDVInvokedUrlCommand*)command;
3332
-(void)getServerBasePath:(CDVInvokedUrlCommand*)command;
3433

src/ios/CDVWKWebViewEngine.m

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ @interface CDVWKWebViewEngine ()
9696
@property (nonatomic, weak) id <WKScriptMessageHandler> weakScriptMessageHandler;
9797
@property (nonatomic, readwrite) CGRect frame;
9898
@property (nonatomic, strong) NSString *userAgentCreds;
99-
@property (nonatomic, assign) BOOL useScheme;
10099
@property (nonatomic, strong) IONAssetHandler * handler;
101100

102101
@property (nonatomic, readwrite) NSString *CDV_LOCAL_SERVER;
@@ -756,12 +755,8 @@ -(void)getServerBasePath:(CDVInvokedUrlCommand*)command
756755
-(void)setServerBasePath:(CDVInvokedUrlCommand*)command
757756
{
758757
NSString * path = [command argumentAtIndex:0];
759-
if (self.useScheme) {
760-
self.basePath = path;
761-
[self.handler setAssetPath:path];
762-
} else {
763-
[self setServerPath:path];
764-
}
758+
self.basePath = path;
759+
[self.handler setAssetPath:path];
765760

766761
NSURLRequest * request = [NSURLRequest requestWithURL:[NSURL URLWithString:self.CDV_LOCAL_SERVER]];
767762
[(WKWebView*)_engineWebView loadRequest:request];

0 commit comments

Comments
 (0)