From 2c13cc3cf24dceeb620b71b6807be036d6b5bc24 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 13 Apr 2026 08:05:12 +0300 Subject: n2: remove pebble.h dependency from fastforge_logic --- src/c/fastforge_logic.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/c/fastforge_logic.c') 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() -#include -#endif -#endif - #include #include @@ -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; -- cgit v1.2.3