BUILD FIX (r146687): setDefaultMIMEType() is unused in ResourceHandleCFNet.cpp on iOS
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Mar 2013 14:16:56 +0000 (14:16 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Mar 2013 14:16:56 +0000 (14:16 +0000)
Fixes the following build failure:

    Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp:98:13: error: unused function 'setDefaultMIMEType' [-Werror,-Wunused-function]
    static void setDefaultMIMEType(CFURLResponseRef response)
                ^
    1 error generated.

* platform/network/cf/ResourceHandleCFNet.cpp:
(WebCore::setDefaultMIMEType): Add #if !PLATFORM(MAC)/#endif
guard.

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

Source/WebCore/ChangeLog
Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp

index d02612723334ddccd1383b9bd882df45097b8565..29aac5445422fea0e42e2a27377d158835ea0e48 100644 (file)
@@ -1,3 +1,18 @@
+2013-03-23  David Kilzer  <ddkilzer@apple.com>
+
+        BUILD FIX (r146687): setDefaultMIMEType() is unused in ResourceHandleCFNet.cpp on iOS
+
+        Fixes the following build failure:
+
+            Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp:98:13: error: unused function 'setDefaultMIMEType' [-Werror,-Wunused-function]
+            static void setDefaultMIMEType(CFURLResponseRef response)
+                        ^
+            1 error generated.
+
+        * platform/network/cf/ResourceHandleCFNet.cpp:
+        (WebCore::setDefaultMIMEType): Add #if !PLATFORM(MAC)/#endif
+        guard.
+
 2013-03-21  Kiran Muppala  <cmuppala@apple.com>
 
         Add runtime setting for hidden page DOM timer throttling and CSS animation suspension
 2013-03-21  Kiran Muppala  <cmuppala@apple.com>
 
         Add runtime setting for hidden page DOM timer throttling and CSS animation suspension
index 99b387e17921ae7681e18b75c9280f13bcfe9f43..951f4b7a6261eb0ae3dcb1165e0a81f316dc69a0 100644 (file)
@@ -91,12 +91,14 @@ static HashMap<String, RetainPtr<CFDataRef> >& clientCerts()
     return certs;
 }
 
     return certs;
 }
 
+#if !PLATFORM(MAC)
 static void setDefaultMIMEType(CFURLResponseRef response)
 {
     static CFStringRef defaultMIMETypeString = defaultMIMEType().createCFString().leakRef();
     
     CFURLResponseSetMIMEType(response, defaultMIMETypeString);
 }
 static void setDefaultMIMEType(CFURLResponseRef response)
 {
     static CFStringRef defaultMIMETypeString = defaultMIMEType().createCFString().leakRef();
     
     CFURLResponseSetMIMEType(response, defaultMIMETypeString);
 }
+#endif
 
 static void applyBasicAuthorizationHeader(ResourceRequest& request, const Credential& credential)
 {
 
 static void applyBasicAuthorizationHeader(ResourceRequest& request, const Credential& credential)
 {