cleanup: remove dive_get_picture_count() function

The last user was removed in 5b7e4c57f7.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-04-10 09:05:58 +02:00 committed by Dirk Hohndel
parent 4489389a01
commit aa8cadbcdd
2 changed files with 0 additions and 9 deletions

View file

@ -3538,14 +3538,6 @@ void dive_add_picture(struct dive *dive, struct picture *newpic)
return; 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) void picture_free(struct picture *picture)
{ {
if (!picture) if (!picture)

View file

@ -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 create_picture(const char *filename, int shift_time, bool match_all);
extern void dive_add_picture(struct dive *d, struct picture *newpic); extern void dive_add_picture(struct dive *d, struct picture *newpic);
extern bool dive_remove_picture(struct dive *d, const char *filename); 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 bool picture_check_valid_time(timestamp_t timestamp, int shift_time);
extern void picture_free(struct picture *picture); extern void picture_free(struct picture *picture);