Skip to content

Commit

Permalink
Cleanup and preparation for further refinements, such as new types
Browse files Browse the repository at this point in the history
of notifications that could be created.
  • Loading branch information
gioneill committed Jan 8, 2019
1 parent cdae4e6 commit 2f2aa2b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
2 changes: 0 additions & 2 deletions Simplified/NSDate+NYPLDateAdditions.h
Expand Up @@ -5,8 +5,6 @@

+ (NSDate *)dateWithISO8601DateString:(NSString *)string;

+ (BOOL)isTimeOneDayLeft:(NSDate *)date;

- (NSString *)RFC3339String;

- (NSString *)shortTimeUntilString;
Expand Down
17 changes: 0 additions & 17 deletions Simplified/NSDate+NYPLDateAdditions.m
Expand Up @@ -38,23 +38,6 @@ + (NSDate *)dateWithISO8601DateString:(NSString *const)string
return date;
}

+ (BOOL)isTimeOneDayLeft:(NSDate *)date
{
BOOL oneDayLeft = NO;
NSInteger oneDayHours = 24;

// time interval between now and a future date, in seconds
NSTimeInterval seconds = [date timeIntervalSinceDate:[NSDate date]];
seconds = seconds > 0 ? seconds : 0;
long minutes = seconds / 60;
long hours = minutes / 60;

if (hours <= oneDayHours) {
oneDayLeft = YES;
}
return oneDayLeft;
}

- (NSString *)RFC3339String
{
NSDateFormatter *const dateFormatter = [[NSDateFormatter alloc] init];
Expand Down
2 changes: 0 additions & 2 deletions Simplified/NYPLAppDelegate.m
@@ -1,6 +1,4 @@
@import NYPLAudiobookToolkit;
@import NotificationCenter;
@import UserNotifications;

#import "SimplyE-Swift.h"

Expand Down

0 comments on commit 2f2aa2b

Please sign in to comment.