Skip to content

Commit

Permalink
Remove +[NSCalendarDate unixReferenceDate]; it is unused in Pester an…
Browse files Browse the repository at this point in the history
…d referenced a deprecated method.
  • Loading branch information
nriley committed Oct 30, 2011
1 parent d864c58 commit be9fa52
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion Source/NSCalendarDate-OFExtensions.h
Expand Up @@ -10,7 +10,6 @@
#import <Foundation/NSCalendarDate.h>

@interface NSCalendarDate (OFExtensions)
+ (NSCalendarDate *)unixReferenceDate;
- (void)setToUnixDateFormat;

- (NSCalendarDate *)safeReferenceDate;
Expand Down
11 changes: 0 additions & 11 deletions Source/NSCalendarDate-OFExtensions.m
Expand Up @@ -13,17 +13,6 @@

@implementation NSCalendarDate (OFExtensions)

+ (NSCalendarDate *)unixReferenceDate;
{
static NSCalendarDate *unixReferenceDate = nil;
const long zero = 0;

if (unixReferenceDate == nil) {
unixReferenceDate = [[NSCalendarDate dateWithString:[NSString stringWithCString:ctime(&zero)] calendarFormat:@"%a %b %d %H:%M:%S %Y\n"] retain];
}
return unixReferenceDate;
}

- (void)setToUnixDateFormat;
{
if ([self yearOfCommonEra] == [(NSCalendarDate *)[NSCalendarDate date] yearOfCommonEra])
Expand Down

0 comments on commit be9fa52

Please sign in to comment.