From aa8cadbcdd85ffb34950596c62cb3a3a4272c5e3 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 10 Apr 2020 09:05:58 +0200 Subject: [PATCH] cleanup: remove dive_get_picture_count() function The last user was removed in 5b7e4c57f78c9ec2087726ecad89797132a32d08. Signed-off-by: Berthold Stoeger --- core/dive.c | 8 -------- core/dive.h | 1 - 2 files changed, 9 deletions(-) diff --git a/core/dive.c b/core/dive.c index ffdf91ae3..1a55d476a 100644 --- a/core/dive.c +++ b/core/dive.c @@ -3538,14 +3538,6 @@ void dive_add_picture(struct dive *dive, struct picture *newpic) return; } -unsigned int dive_get_picture_count(struct dive *dive) -{ - unsigned int i = 0; - FOR_EACH_PICTURE (dive) - i++; - return i; -} - void picture_free(struct picture *picture) { if (!picture) diff --git a/core/dive.h b/core/dive.h index 1e5ca873d..7637ddc54 100644 --- a/core/dive.h +++ b/core/dive.h @@ -227,7 +227,6 @@ extern void free_picture(struct picture *picture); extern void create_picture(const char *filename, int shift_time, bool match_all); extern void dive_add_picture(struct dive *d, struct picture *newpic); extern bool dive_remove_picture(struct dive *d, const char *filename); -extern unsigned int dive_get_picture_count(struct dive *d); extern bool picture_check_valid_time(timestamp_t timestamp, int shift_time); extern void picture_free(struct picture *picture);