Removed unused SPI -[WKWebView _runJavaScriptInMainFrame:].
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Jun 2014 01:39:18 +0000 (01:39 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Jun 2014 01:39:18 +0000 (01:39 +0000)
Rubber-stamped by Simon Fraser.

* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _runJavaScriptInMainFrame:]): Deleted.
* UIProcess/API/Cocoa/WKWebViewPrivate.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@170170 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm
Source/WebKit2/UIProcess/API/Cocoa/WKWebViewPrivate.h

index 71b0394..7452815 100644 (file)
@@ -1,5 +1,15 @@
 2014-06-19  Dan Bernstein  <mitz@apple.com>
 
+        Removed unused SPI -[WKWebView _runJavaScriptInMainFrame:].
+
+        Rubber-stamped by Simon Fraser.
+
+        * UIProcess/API/Cocoa/WKWebView.mm:
+        (-[WKWebView _runJavaScriptInMainFrame:]): Deleted.
+        * UIProcess/API/Cocoa/WKWebViewPrivate.h:
+
+2014-06-19  Dan Bernstein  <mitz@apple.com>
+
         Use a single map for all callback types in WebPageProxy
         https://bugs.webkit.org/show_bug.cgi?id=134069
 
index 82d9ebc..432a72a 100644 (file)
@@ -1511,11 +1511,6 @@ static inline WebCore::LayoutMilestones layoutMilestones(_WKRenderingProgressEve
     _page->listenForLayoutMilestones(layoutMilestones(observedRenderingProgressEvents));
 }
 
-- (void)_runJavaScriptInMainFrame:(NSString *)scriptString
-{
-    [self evaluateJavaScript:scriptString completionHandler:^(id, NSError *) { }];
-}
-
 - (void)_getWebArchiveDataWithCompletionHandler:(void (^)(NSData *, NSError *))completionHandler
 {
     auto handler = adoptNS([completionHandler copy]);
index caa830c..263d3c0 100644 (file)
@@ -150,8 +150,6 @@ typedef NS_OPTIONS(NSUInteger, _WKFindOptions) {
 @property (nonatomic, setter=_setTopContentInset:) CGFloat _topContentInset;
 #endif
 
-- (void)_runJavaScriptInMainFrame:(NSString *)scriptString;
-
 - (void)_getWebArchiveDataWithCompletionHandler:(void (^)(NSData *, NSError *))completionHandler;
 
 @property (nonatomic, setter=_setPaginationMode:) _WKPaginationMode _paginationMode;