From f3ef38ca0d6db6f7e022a0e565f7460ed22f431e Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 10 Jun 2018 16:39:47 +0200 Subject: 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 --- tests/testpicture.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'tests') diff --git a/tests/testpicture.cpp b/tests/testpicture.cpp index 1833a2bcf..588598497 100644 --- a/tests/testpicture.cpp +++ b/tests/testpicture.cpp @@ -44,12 +44,8 @@ void TestPicture::addPicture() QVERIFY(pic1->longitude.udeg == 11334500); QVERIFY(pic2->offset.seconds == 1321); - hashPicture(pic1->filename); - hashPicture(pic2->filename); learnPictureFilename(pic1->filename, PIC1_NAME); learnPictureFilename(pic2->filename, PIC2_NAME); - QCOMPARE(hashstring(pic1->filename), PIC1_HASH); - QCOMPARE(hashstring(pic2->filename), PIC2_HASH); QCOMPARE(localFilePath(pic1->filename), QString(PIC1_NAME)); QCOMPARE(localFilePath(pic2->filename), QString(PIC2_NAME)); } -- cgit v1.2.3-70-g09d2