diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-03-19 20:20:42 +0100 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-04-01 16:04:48 +0300 |
commit | 66b71c60a0980a1490be3bdacb1fdfa9dcca0c48 (patch) | |
tree | 92bd4485c5903a70be97ebb01328613cb4e9e14e /core/metadata.cpp | |
parent | 9b2482aca9bed6dc512f52131b54b4db915f549c (diff) | |
download | subsurface-66b71c60a0980a1490be3bdacb1fdfa9dcca0c48.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/metadata.cpp')
-rw-r--r-- | core/metadata.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
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; -} |