Changeset 159480 in webkit


Ignore:
Timestamp:
Nov 18, 2013 9:14:36 PM (10 years ago)
Author:
mrowe@apple.com
Message:

Disable deprecation warnings related to NSCalendarDate in WebHistory.

Reviewed by Anders Carlsson.

  • History/WebHistory.h: Use a #pragma to have the compiler treat this header as

a system header, even when not included from a system location. This has the effect
of suppressing warnings when including this header. It's a more general effect than
we're after but is also less invasive than disabling deprecation warnings around
the APIs that are defined in terms of NSCalendarDate. We'll hopefully revisit this
in the future.

  • History/WebHistory.mm: Disable deprecation warnings around uses of NSCalendarDate.
Location:
trunk/Source/WebKit/mac
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/mac/ChangeLog

    r159460 r159480  
     12013-11-18  Mark Rowe  <mrowe@apple.com>
     2
     3        Disable deprecation warnings related to NSCalendarDate in WebHistory.
     4
     5        Reviewed by Anders Carlsson.
     6
     7        * History/WebHistory.h: Use a #pragma to have the compiler treat this header as
     8        a system header, even when not included from a system location. This has the effect
     9        of suppressing warnings when including this header. It's a more general effect than
     10        we're after but is also less invasive than disabling deprecation warnings around
     11        the APIs that are defined in terms of NSCalendarDate. We'll hopefully revisit this
     12        in the future.
     13        * History/WebHistory.mm: Disable deprecation warnings around uses of NSCalendarDate.
     14
    1152013-11-18  David Hyatt  <hyatt@apple.com>
    216
  • trunk/Source/WebKit/mac/History/WebHistory.h

    r159434 r159480  
    2828
    2929#import <Foundation/Foundation.h>
     30
     31#pragma GCC system_header
    3032
    3133@class NSError;
  • trunk/Source/WebKit/mac/History/WebHistory.mm

    r159311 r159480  
    9393
    9494- (NSArray *)orderedLastVisitedDays;
    95 - (NSArray *)orderedItemsLastVisitedOnDay:(NSCalendarDate *)calendarDate;
    9695- (BOOL)containsURL:(NSURL *)URL;
    9796- (WebHistoryItem *)itemForURL:(NSURL *)URL;
     
    101100- (BOOL)loadFromURL:(NSURL *)URL collectDiscardedItemsInto:(NSMutableArray *)discardedItems error:(NSError **)error;
    102101- (BOOL)saveToURL:(NSURL *)URL error:(NSError **)error;
    103 
    104 - (NSCalendarDate *)ageLimitDate;
    105102
    106103- (void)setHistoryItemLimit:(int)limit;
     
    446443// MARK: DATE-BASED RETRIEVAL
    447444
     445#pragma clang diagnostic push
     446#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     447
    448448- (NSArray *)orderedLastVisitedDays
    449449{
     
    476476}
    477477
     478#pragma clang diagnostic pop
     479
    478480// MARK: URL MATCHING
    479481
     
    526528}
    527529
     530#pragma clang diagnostic push
     531#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     532
    528533// Return a date that marks the age limit for history entries saved to or
    529534// loaded from disk. Any entry older than this item should be rejected.
     
    533538                                                      hours:0 minutes:0 seconds:0];
    534539}
     540
     541#pragma clang diagnostic pop
    535542
    536543- (BOOL)loadHistoryGutsFromURL:(NSURL *)URL savedItemsCount:(int *)numberOfItemsLoaded collectDiscardedItemsInto:(NSMutableArray *)discardedItems error:(NSError **)error
     
    775782}
    776783
     784#pragma clang diagnostic push
     785#pragma clang diagnostic ignored "-Wdeprecated-declarations"
     786
    777787- (NSArray *)orderedItemsLastVisitedOnDay:(NSCalendarDate *)date
    778788{
    779789    return [_historyPrivate orderedItemsLastVisitedOnDay:date];
    780790}
     791
     792#pragma clang diagnostic pop
    781793
    782794// MARK: URL MATCHING
Note: See TracChangeset for help on using the changeset viewer.