Skip to content

Commit

Permalink
fix(iOS): Remove unused code (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored and mlynch committed Dec 19, 2018
1 parent 0dee0cf commit bceb17a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/ios/CDVWKWebViewEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
extern NSString * const IONIC_SCHEME;
extern NSString * const IONIC_FILE_SCHEME;

-(void)setServerPath:(NSString *) path;
-(void)setServerBasePath:(CDVInvokedUrlCommand*)command;
-(void)getServerBasePath:(CDVInvokedUrlCommand*)command;

Expand Down
9 changes: 2 additions & 7 deletions src/ios/CDVWKWebViewEngine.m
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ @interface CDVWKWebViewEngine ()
@property (nonatomic, weak) id <WKScriptMessageHandler> weakScriptMessageHandler;
@property (nonatomic, readwrite) CGRect frame;
@property (nonatomic, strong) NSString *userAgentCreds;
@property (nonatomic, assign) BOOL useScheme;
@property (nonatomic, strong) IONAssetHandler * handler;

@property (nonatomic, readwrite) NSString *CDV_LOCAL_SERVER;
Expand Down Expand Up @@ -756,12 +755,8 @@ -(void)getServerBasePath:(CDVInvokedUrlCommand*)command
-(void)setServerBasePath:(CDVInvokedUrlCommand*)command
{
NSString * path = [command argumentAtIndex:0];
if (self.useScheme) {
self.basePath = path;
[self.handler setAssetPath:path];
} else {
[self setServerPath:path];
}
self.basePath = path;
[self.handler setAssetPath:path];

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

0 comments on commit bceb17a

Please sign in to comment.