Commit eecc8283 authored by beidson@apple.com's avatar beidson@apple.com
Browse files

2008-10-31 Brady Eidson <beidson@apple.com>

        Reviewed by Darin

        [WebHistory setLastVisitedTimeInterval:forItem] was internal to WebHistory.mm and 
        completely unused.  Nuke it!

        * History/WebHistory.mm:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38042 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent bb48a6e6
2008-10-31 Brady Eidson <beidson@apple.com>
Reviewed by Darin
[WebHistory setLastVisitedTimeInterval:forItem] was internal to WebHistory.mm and
completely unused. Nuke it!
* History/WebHistory.mm:
2008-10-31 Chris Fleizach <cfleizach@apple.com>
Reviewed by Darin Adler.
......
......@@ -76,7 +76,6 @@ NSString *DatesArrayKey = @"WebHistoryDates";
- (BOOL)removeItem:(WebHistoryItem *)entry;
- (BOOL)removeItems:(NSArray *)entries;
- (BOOL)removeAllItems;
- (void)setLastVisitedTimeInterval:(NSTimeInterval)time forItem:(WebHistoryItem *)item;
- (NSArray *)orderedLastVisitedDays;
- (NSArray *)orderedItemsLastVisitedOnDay:(NSCalendarDate *)calendarDate;
......@@ -283,24 +282,6 @@ WebHistoryDateKey timeIntervalForBeginningOfDay(NSTimeInterval interval)
[_entriesByURL setObject:entry forKey:URLString];
}
- (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];
// Don't send notification until entry is back in the right place in the date caches,
// since observers might fetch history by date when they receive the notification.
[[NSNotificationCenter defaultCenter]
postNotificationName:WebHistoryItemChangedNotification object:entry userInfo:nil];
}
- (BOOL)removeItem:(WebHistoryItem *)entry
{
NSString *URLString = [entry URLString];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment