summaryrefslogtreecommitdiff
path: root/test/fixtures/util.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-02-17 15:53:14 +0100
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-03-22 11:56:01 -0700
commit1dd81d9776baf9b9ef61b05d29f7acbb0f2a1508 (patch)
treeded904ed0a8b2d9cb0f3f784d683162e5917e99f /test/fixtures/util.cpp
parentc608803ca95e833c9312c0f1cd622594224d5458 (diff)
downloadqtlocation-mapboxgl-1dd81d9776baf9b9ef61b05d29f7acbb0f2a1508.tar.gz
[test] remove crc64 and compare images
boost's crc64 breaks on iOS
Diffstat (limited to 'test/fixtures/util.cpp')
-rw-r--r--test/fixtures/util.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/test/fixtures/util.cpp b/test/fixtures/util.cpp
index 5617b15e8b..0829fe72d8 100644
--- a/test/fixtures/util.cpp
+++ b/test/fixtures/util.cpp
@@ -8,11 +8,6 @@
#include <mapbox/pixelmatch.hpp>
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wshadow"
-#include <boost/crc.hpp>
-#pragma GCC diagnostic pop
-
#include <csignal>
#include <future>
@@ -90,22 +85,6 @@ Server::~Server() {
}
}
-
-// from https://gist.github.com/ArtemGr/997887
-uint64_t crc64(const char* data, size_t size) {
- boost::crc_optimal<64, 0x04C11DB7, 0, 0, false, false> crc;
- crc.process_bytes(data, size);
- return crc.checksum();
-}
-
-uint64_t crc64(const std::string& str) {
- return crc64(str.data(), str.size());
-}
-
-uint64_t crc64(const PremultipliedImage &image) {
- return crc64(reinterpret_cast<const char*>(image.data.get()), image.size());
-}
-
PremultipliedImage render(Map& map) {
std::promise<PremultipliedImage> promise;
map.renderStill([&](std::exception_ptr, PremultipliedImage&& image) {