From 66b71c60a0980a1490be3bdacb1fdfa9dcca0c48 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 19 Mar 2018 20:20:42 +0100 Subject: Dive pictures: use get_metadata() in dive_create_picture() Thus, metadata has to be only read once and the picture_load_exif_data() function can be removed. Signed-off-by: Berthold Stoeger --- core/metadata.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'core/metadata.cpp') diff --git a/core/metadata.cpp b/core/metadata.cpp index bf4bfcb90..ca72cecb4 100644 --- a/core/metadata.cpp +++ b/core/metadata.cpp @@ -98,12 +98,3 @@ extern "C" timestamp_t picture_get_timestamp(const char *filename) get_metadata(filename, &data); return data.timestamp; } - -extern "C" void picture_load_exif_data(struct picture *p) -{ - struct metadata data; - if (get_metadata(p->filename, &data) == MEDIATYPE_IO_ERROR) - return; - p->longitude = data.longitude; - p->latitude = data.latitude; -} -- cgit v1.2.3-70-g09d2