Remove unused ResourceResponse::platformResponseIsUpToDate
authorachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Jun 2016 19:23:29 +0000 (19:23 +0000)
committerachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Jun 2016 19:23:29 +0000 (19:23 +0000)
https://bugs.webkit.org/show_bug.cgi?id=158424

Reviewed by Brady Eidson.

No change in behavior, just removing unused code that was introduced in r145007.

* platform/network/cf/ResourceResponse.h:
(WebCore::ResourceResponse::ResourceResponse):
(WebCore::ResourceResponse::platformResponseIsUpToDate): Deleted.
* platform/network/cocoa/ResourceResponseCocoa.mm:
(WebCore::ResourceResponse::ResourceResponse):
* platform/network/curl/ResourceResponse.h:
(WebCore::ResourceResponse::cfURLResponse):
(WebCore::ResourceResponse::platformResponseIsUpToDate): Deleted.
* platform/network/soup/ResourceResponse.h:
(WebCore::ResourceResponse::soupMessageTLSErrors):
(WebCore::ResourceResponse::setSoupMessageTLSErrors):
(WebCore::ResourceResponse::decode):
(WebCore::ResourceResponse::platformResponseIsUpToDate): Deleted.

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

Source/WebCore/ChangeLog
Source/WebCore/platform/network/cf/ResourceResponse.h
Source/WebCore/platform/network/cocoa/ResourceResponseCocoa.mm
Source/WebCore/platform/network/curl/ResourceResponse.h
Source/WebCore/platform/network/soup/ResourceResponse.h

index f1940b4..63fd966 100644 (file)
@@ -1,3 +1,26 @@
+2016-06-06  Alex Christensen  <achristensen@webkit.org>
+
+        Remove unused ResourceResponse::platformResponseIsUpToDate
+        https://bugs.webkit.org/show_bug.cgi?id=158424
+
+        Reviewed by Brady Eidson.
+
+        No change in behavior, just removing unused code that was introduced in r145007.
+
+        * platform/network/cf/ResourceResponse.h:
+        (WebCore::ResourceResponse::ResourceResponse):
+        (WebCore::ResourceResponse::platformResponseIsUpToDate): Deleted.
+        * platform/network/cocoa/ResourceResponseCocoa.mm:
+        (WebCore::ResourceResponse::ResourceResponse):
+        * platform/network/curl/ResourceResponse.h:
+        (WebCore::ResourceResponse::cfURLResponse):
+        (WebCore::ResourceResponse::platformResponseIsUpToDate): Deleted.
+        * platform/network/soup/ResourceResponse.h:
+        (WebCore::ResourceResponse::soupMessageTLSErrors):
+        (WebCore::ResourceResponse::setSoupMessageTLSErrors):
+        (WebCore::ResourceResponse::decode):
+        (WebCore::ResourceResponse::platformResponseIsUpToDate): Deleted.
+
 2016-06-05  Gavin & Ellie Barraclough  <barraclough@apple.com>
 
         Deprecate remaining uses of Lookup getStatic*, use HasStaticPropertyTable instead.
index 7df0e70..e6acef6 100644 (file)
@@ -40,14 +40,12 @@ class ResourceResponse : public ResourceResponseBase {
 public:
     ResourceResponse()
         : m_initLevel(AllFields)
-        , m_platformResponseIsUpToDate(true)
     {
     }
 
 #if USE(CFNETWORK)
     ResourceResponse(CFURLResponseRef cfResponse)
         : m_initLevel(Uninitialized)
-        , m_platformResponseIsUpToDate(true)
         , m_cfResponse(cfResponse)
     {
         m_isNull = !cfResponse;
@@ -58,7 +56,6 @@ public:
 #else
     ResourceResponse(NSURLResponse *nsResponse)
         : m_initLevel(Uninitialized)
-        , m_platformResponseIsUpToDate(true)
         , m_nsResponse(nsResponse)
     {
         m_isNull = !nsResponse;
@@ -68,7 +65,6 @@ public:
     ResourceResponse(const URL& url, const String& mimeType, long long expectedLength, const String& textEncodingName)
         : ResourceResponseBase(url, mimeType, expectedLength, textEncodingName)
         , m_initLevel(AllFields)
-        , m_platformResponseIsUpToDate(false)
     {
     }
 
@@ -91,8 +87,6 @@ public:
     WEBCORE_EXPORT NSURLResponse *nsURLResponse() const;
 #endif
 
-    bool platformResponseIsUpToDate() const { return m_platformResponseIsUpToDate; }
-
 private:
     friend class ResourceResponseBase;
 
@@ -109,7 +103,6 @@ private:
     static bool platformCompare(const ResourceResponse& a, const ResourceResponse& b);
 
     unsigned m_initLevel : 3;
-    bool m_platformResponseIsUpToDate : 1;
 
 #if USE(CFNETWORK)
     mutable RetainPtr<CFURLResponseRef> m_cfResponse;
index c7f47ac..93579ad 100644 (file)
@@ -127,7 +127,6 @@ NSURLResponse *ResourceResponse::nsURLResponse() const
 
 ResourceResponse::ResourceResponse(NSURLResponse* nsResponse)
     : m_initLevel(Uninitialized)
-    , m_platformResponseIsUpToDate(true)
     , m_cfResponse([nsResponse _CFURLResponse])
     , m_nsResponse(nsResponse)
 {
index ea1840f..2a4232c 100644 (file)
@@ -23,8 +23,7 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef ResourceResponse_h
-#define ResourceResponse_h
+#pragma once
 
 #include "HTTPHeaderNames.h"
 #include "HTTPParsers.h"
@@ -54,8 +53,6 @@ public:
     // Needed for compatibility.
     CFURLResponseRef cfURLResponse() const { return 0; }
 
-    bool platformResponseIsUpToDate() const { return false; }
-
 private:
     friend class ResourceResponseBase;
 
@@ -68,5 +65,3 @@ private:
 };
 
 } // namespace WebCore
-
-#endif // ResourceResponse_h
index 27f9b53..96e5c98 100644 (file)
@@ -23,8 +23,7 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef ResourceResponse_h
-#define ResourceResponse_h
+#pragma once
 
 #include "ResourceResponseBase.h"
 
@@ -74,8 +73,6 @@ public:
     GTlsCertificateFlags soupMessageTLSErrors() const { return m_tlsErrors; }
     void setSoupMessageTLSErrors(GTlsCertificateFlags tlsErrors) { m_tlsErrors = tlsErrors; }
 
-    bool platformResponseIsUpToDate() const { return false; }
-
     template<class Encoder> void encode(Encoder&) const;
     template<class Decoder> static bool decode(Decoder&, ResourceResponse&);
 
@@ -110,5 +107,3 @@ bool ResourceResponse::decode(Decoder& decoder, ResourceResponse& response)
 }
 
 } // namespace WebCore
-
-#endif // ResourceResponse_h