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/save-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/save-git.c')
-rw-r--r-- | core/save-git.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/save-git.c b/core/save-git.c index 5d117748a..3780399a0 100644 --- a/core/save-git.c +++ b/core/save-git.c @@ -610,14 +610,10 @@ static int save_one_picture(git_repository *repo, struct dir *dir, struct pictur int offset = pic->offset.seconds; struct membuffer buf = { 0 }; char sign = '+'; - char *hash; unsigned h; show_utf8(&buf, "filename ", pic->filename, "\n"); show_gps(&buf, pic->latitude, pic->longitude); - hash = hashstring(pic->filename); - show_utf8(&buf, "hash ", hash, "\n"); - free(hash); /* Picture loading will load even negative offsets.. */ if (offset < 0) { |