diff options
Diffstat (limited to 'src/c/fastforge_logic.c')
| -rw-r--r-- | src/c/fastforge_logic.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/c/fastforge_logic.c b/src/c/fastforge_logic.c index 64fe776..b93240d 100644 --- a/src/c/fastforge_logic.c +++ b/src/c/fastforge_logic.c @@ -1,11 +1,5 @@ #include "fastforge_logic.h" -#if defined(__has_include) -#if __has_include(<pebble.h>) -#include <pebble.h> -#endif -#endif - #include <stdio.h> #include <time.h> @@ -61,25 +55,6 @@ void format_duration_hours_minutes(time_t seconds, char *buffer, size_t size) { snprintf(buffer, size, "%dh %02dm", hours, minutes); } -time_t local_day_start(time_t timestamp) { - if (timestamp <= 0) { - return 0; - } - - struct tm tm_copy; - struct tm *tm_info = localtime(×tamp); - if (!tm_info) { - return 0; - } - - tm_copy = *tm_info; - tm_copy.tm_hour = 0; - tm_copy.tm_min = 0; - tm_copy.tm_sec = 0; - tm_copy.tm_isdst = -1; - return mktime(&tm_copy); -} - bool running_fast_is_at_target(const FastEntry *entry, time_t now) { if (!entry || entry->start_time == 0 || entry->end_time != 0 || entry->target_minutes == 0) { return false; |
