diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-06-10 16:39:47 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-04 02:27:36 +0800 |
commit | f3ef38ca0d6db6f7e022a0e565f7460ed22f431e (patch) | |
tree | 66a331547c00a48f2a15882f3f7d22307866f120 /core/load-git.c | |
parent | 0646b41275a3f38926c75d2746b3208805da3a23 (diff) | |
download | subsurface-f3ef38ca0d6db6f7e022a0e565f7460ed22f431e.tar.gz |
Dive pictures: remove hashes
In the last commits, the canonical-to-local filename map was made
independent from the image hashes and the location of moved images
was based on filename not hashes. The hashes are now in principle
unused (except for conversion of old-style local filename lookups).
Therefore, remove the hashes in this commit. This makes addition
of images distinctly faster.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/load-git.c')
-rw-r--r-- | core/load-git.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/core/load-git.c b/core/load-git.c index b42492854..301895237 100644 --- a/core/load-git.c +++ b/core/load-git.c @@ -953,15 +953,6 @@ static void parse_picture_gps(char *line, struct membuffer *str, void *_pic) pic->longitude = parse_degrees(line, &line); } -static void parse_picture_hash(char *line, struct membuffer *str, void *_pic) -{ - UNUSED(line); - struct picture *pic = _pic; - char *hash = get_utf8(str); - register_hash(pic->filename, get_utf8(str)); - free(hash); -} - /* These need to be sorted! */ struct keyword_action dc_action[] = { #undef D @@ -1035,7 +1026,7 @@ static void settings_parser(char *line, struct membuffer *str, void *_unused) static struct keyword_action picture_action[] = { #undef D #define D(x) { #x, parse_picture_ ## x } - D(filename), D(gps), D(hash) + D(filename), D(gps) }; static void picture_parser(char *line, struct membuffer *str, void *_pic) |