Skip to content

Commit

Permalink
[ios] Removed EvaluateJavaScriptAsString that takes UIWebView.
Browse files Browse the repository at this point in the history
This function is unused.

BUG=579697

Review URL: https://codereview.chromium.org/1877133003

Cr-Commit-Position: refs/heads/master@{#386736}
  • Loading branch information
eugenebut authored and Commit bot committed Apr 12, 2016
1 parent 2709cbb commit 4e74a9a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
5 changes: 1 addition & 4 deletions ios/web/public/test/js_test_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ifndef IOS_WEB_PUBLIC_TEST_JS_TEST_UTIL_H_
#define IOS_WEB_PUBLIC_TEST_JS_TEST_UTIL_H_

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <WebKit/WebKit.h>

@class CRWJSInjectionManager;
Expand All @@ -21,9 +21,6 @@ NSString* EvaluateJavaScriptAsString(CRWJSInjectionManager* manager,
NSString* EvaluateJavaScriptAsString(CRWJSInjectionReceiver* receiver,
NSString* script);

// Evaluates JavaScript on |web_view| and returns the result as a string.
NSString* EvaluateJavaScriptAsString(UIWebView* web_view, NSString* script);

// Evaluates JavaScript on |web_view| and returns the result as an id.
id EvaluateJavaScript(WKWebView* web_view, NSString* script);

Expand Down
5 changes: 0 additions & 5 deletions ios/web/public/test/js_test_util.mm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#import "ios/web/public/test/js_test_util.h"

#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>

#import "base/logging.h"
Expand Down Expand Up @@ -54,10 +53,6 @@
return EvaluateJavaScriptAsString(manager, script);
}

NSString* EvaluateJavaScriptAsString(UIWebView* web_view, NSString* script) {
return [web_view stringByEvaluatingJavaScriptFromString:script];
}

id EvaluateJavaScript(WKWebView* web_view, NSString* script) {
__block base::scoped_nsobject<id> result;
__block bool completed = false;
Expand Down

0 comments on commit 4e74a9a

Please sign in to comment.