Fix the build.
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Feb 2009 04:15:16 +0000 (04:15 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Feb 2009 04:15:16 +0000 (04:15 +0000)
* History/WebHistory.mm:
(-[WebHistoryPrivate visitedURL:withTitle:]): Use ASSERT_UNUSED in a manner that makes sense.

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

WebKit/mac/ChangeLog
WebKit/mac/History/WebHistory.mm

index 3d88840..994bcd6 100644 (file)
@@ -1,3 +1,10 @@
+2009-02-11  Mark Rowe  <mrowe@apple.com>
+
+        Fix the build.
+
+        * History/WebHistory.mm:
+        (-[WebHistoryPrivate visitedURL:withTitle:]): Use ASSERT_UNUSED in a manner that makes sense.
+
 2009-02-11  Brady Eidson  <beidson@apple.com>
 
         Reviewed by Mark Rowe
index 0865de0..dc4e12e 100644 (file)
@@ -268,12 +268,9 @@ static WebHistoryDateKey timeIntervalForBeginningOfDay(NSTimeInterval interval)
         LOG(History, "Updating global history entry %@", entry);
         // Remove the item from date caches before changing its last visited date.  Otherwise we might get duplicate entries
         // as seen in <rdar://problem/6570573>.
-#if ASSERT_UNUSED
-        [self removeItemFromDateCaches:entry];
-#else
         BOOL itemWasInDateCaches = [self removeItemFromDateCaches:entry];
-        ASSERT(itemWasInDateCaches);
-#endif
+        ASSERT_UNUSED(itemWasInDateCaches, itemWasInDateCaches);
+
         [entry _visitedWithTitle:title];
     } else {
         LOG(History, "Adding new global history entry for %@", url);