Tiger build fix. The connection parameter is still used on Tiger in this method.
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 11 Jan 2009 23:55:05 +0000 (23:55 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 11 Jan 2009 23:55:05 +0000 (23:55 +0000)
* platform/network/mac/ResourceHandleMac.mm:
(-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]):

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

WebCore/ChangeLog
WebCore/platform/network/mac/ResourceHandleMac.mm

index 7b75b6a..fcdfb11 100644 (file)
@@ -1,3 +1,10 @@
+2009-01-11  Mark Rowe  <mrowe@apple.com>
+
+        Tiger build fix.  The connection parameter is still used on Tiger in this method.
+
+        * platform/network/mac/ResourceHandleMac.mm:
+        (-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]):
+
 2009-01-11  Darin Adler  <darin@apple.com>
 
         Reviewed by Dan Bernstein.
index 05dd40f..951a2df 100644 (file)
@@ -624,10 +624,8 @@ void ResourceHandle::receivedCancellation(const AuthenticationChallenge& challen
 }
 #endif
 
-- (NSCachedURLResponse *)connection:(NSURLConnection *)unusedConnection willCacheResponse:(NSCachedURLResponse *)cachedResponse
+- (NSCachedURLResponse *)connection:(NSURLConnection *)connection willCacheResponse:(NSCachedURLResponse *)cachedResponse
 {
-    UNUSED_PARAM(unusedConnection);
-
 #ifdef BUILDING_ON_TIGER
     // On Tiger CFURLConnection can sometimes call the connection:willCacheResponse: delegate method on
     // a secondary thread instead of the main thread. If this happens perform the work on the main thread.
@@ -649,6 +647,8 @@ void ResourceHandle::receivedCancellation(const AuthenticationChallenge& challen
 
         return [result autorelease];
     }
+#else
+    UNUSED_PARAM(connection);
 #endif
 
 #ifndef NDEBUG