mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
0646b41275
commit
f3ef38ca0d
11 changed files with 32 additions and 122 deletions
|
@ -1221,7 +1221,7 @@ static void try_to_fill_dive(struct dive *dive, const char *name, char *buf)
|
|||
if (MATCH("gps.picture", gps_picture_location, cur_picture))
|
||||
return;
|
||||
if (MATCH("hash.picture", utf8_string, &hash)) {
|
||||
register_hash(cur_picture->filename, hash);
|
||||
/* Legacy -> ignore. */
|
||||
free(hash);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue