[Cocoa] WKWebView's _privateBrowsingEnabled property is unused
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jun 2014 04:27:41 +0000 (04:27 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jun 2014 04:27:41 +0000 (04:27 +0000)
https://bugs.webkit.org/show_bug.cgi?id=134013

Reviewed by Sam Weinig.

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

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

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

index 6323998..cf04776 100644 (file)
@@ -1,3 +1,15 @@
+2014-06-17  Dan Bernstein  <mitz@apple.com>
+
+        [Cocoa] WKWebView's _privateBrowsingEnabled property is unused
+        https://bugs.webkit.org/show_bug.cgi?id=134013
+
+        Reviewed by Sam Weinig.
+
+        * UIProcess/API/Cocoa/WKWebView.mm:
+        (-[WKWebView _privateBrowsingEnabled]): Deleted.
+        (-[WKWebView _setPrivateBrowsingEnabled:]): Deleted.
+        * UIProcess/API/Cocoa/WKWebViewPrivate.h:
+
 2014-06-17  Tim Horton  <timothy_horton@apple.com>
 
         [iOS][wk2] Use ImageDocument to display subframe PDFs
index 41f6e0b..f5d4777 100644 (file)
@@ -1456,16 +1456,6 @@ static void releaseNSData(unsigned char*, const void* data)
     _page->close();
 }
 
-- (BOOL)_privateBrowsingEnabled
-{
-    return [_configuration preferences]->_preferences->privateBrowsingEnabled();
-}
-
-- (void)_setPrivateBrowsingEnabled:(BOOL)privateBrowsingEnabled
-{
-    [_configuration preferences]->_preferences->setPrivateBrowsingEnabled(privateBrowsingEnabled);
-}
-
 - (BOOL)_allowsRemoteInspection
 {
 #if ENABLE(REMOTE_INSPECTOR)
index e959129..3199324 100644 (file)
@@ -87,8 +87,6 @@ typedef NS_OPTIONS(NSUInteger, _WKFindOptions) {
 @property (nonatomic, readonly) NSData *_sessionState;
 - (void)_restoreFromSessionState:(NSData *)sessionState;
 
-@property (nonatomic, setter=_setPrivateBrowsingEnabled:) BOOL _privateBrowsingEnabled;
-
 @property (nonatomic, setter=_setAllowsRemoteInspection:) BOOL _allowsRemoteInspection;
 
 @property (nonatomic, setter=_setAddsVisitedLinks:) BOOL _addsVisitedLinks;