fixed deployment build by hiding local variables used only in ASSERTs on builds for
which ASSERT_DISABLED is true.
* History.subproj/WebHistory.m:
(-[WebHistoryPrivate removeItemForURLString:]):
(-[WebHistoryPrivate setLastVisitedTimeInterval:forItem:]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@11023
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-11-01 John Sullivan <sullivan@apple.com>
+
+ Reviewed by Darin Adler.
+
+ fixed deployment build by hiding local variables used only in ASSERTs on builds for
+ which ASSERT_DISABLED is true.
+
+ * History.subproj/WebHistory.m:
+ (-[WebHistoryPrivate removeItemForURLString:]):
+ (-[WebHistoryPrivate setLastVisitedTimeInterval:forItem:]):
+
2005-11-01 John Sullivan <sullivan@apple.com>
Reviewed by Tim Omernick.
[_entriesByURL removeObjectForKey: URLString];
+#if ASSERT_DISABLED
+ [self _removeItemFromDateCaches:entry];
+#else
BOOL itemWasInDateCaches = [self _removeItemFromDateCaches:entry];
ASSERT(itemWasInDateCaches);
+#endif
return YES;
}
- (void)setLastVisitedTimeInterval:(NSTimeInterval)time forItem:(WebHistoryItem *)entry
{
+#if ASSERT_DISABLED
+ [self _removeItemFromDateCaches:entry];
+#else
BOOL entryWasPresent = [self _removeItemFromDateCaches:entry];
ASSERT(entryWasPresent);
+#endif
[entry _setLastVisitedTimeInterval:time];
[self _addItemToDateCaches:entry];