diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2017-05-11 22:43:36 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-05-26 15:50:52 -0700 |
commit | e6d884cf26161df65c2b4b8c39d6b4133760537b (patch) | |
tree | 2b9132e7d057c514c852a7cf7bed39fa67455a6f /core/statistics.h | |
parent | 53a8075bd8d7231f2bb483b9adca0fc60d4446f1 (diff) | |
download | subsurface-e6d884cf26161df65c2b4b8c39d6b4133760537b.tar.gz |
Creation of dive duration string and surface interval string
Update the function to create the dive duration string in a way that
it can be used also in info and stats tab and added some more flexibility.
Changed layout for <1h freedives to "0:05:35" (w/o units) or "5:35min"
(with units and :) or "5min 35sec" (with units with space).
Add a new function to create the surface interval string.
Completely remove old function get_time_string() and get_time_string_s().
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'core/statistics.h')
-rw-r--r-- | core/statistics.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/statistics.h b/core/statistics.h index 97aa4334c..9f045c16c 100644 --- a/core/statistics.h +++ b/core/statistics.h @@ -44,7 +44,6 @@ extern stats_t *stats_monthly; extern stats_t *stats_by_trip; extern stats_t *stats_by_type; -extern char *get_time_string_s(int seconds, int maxdays, bool freediving); extern char *get_minutes(int seconds); extern void process_all_dives(struct dive *dive, struct dive **prev_dive); extern void get_selected_dives_text(char *buffer, size_t size); @@ -52,9 +51,6 @@ extern void get_gas_used(struct dive *dive, volume_t gases[MAX_CYLINDERS]); extern void process_selected_dives(void); void selected_dives_gas_parts(volume_t *o2_tot, volume_t *he_tot); -inline char *get_time_string(int seconds, int maxdays) { - return get_time_string_s( seconds, maxdays, false); -} #ifdef __cplusplus } #endif |