From 334f5f83ee21969bde3e7d26df03778e17f2adef Mon Sep 17 00:00:00 2001 From: Paul Jones Date: Tue, 13 Dec 2016 12:52:26 +1100 Subject: [PATCH] Remove unused crc64 function Signed-off-by: Paul Jones --- include/crucible/crc64.h | 1 - lib/crc64.cc | 7 ------- test/crc64.cc | 13 ------------- 3 files changed, 21 deletions(-) diff --git a/include/crucible/crc64.h b/include/crucible/crc64.h index d4d4612..8133eb3 100644 --- a/include/crucible/crc64.h +++ b/include/crucible/crc64.h @@ -8,7 +8,6 @@ namespace crucible { namespace Digest { namespace CRC { - uint64_t crc64(const char *s); uint64_t crc64(const void *p, size_t len); }; }; diff --git a/lib/crc64.cc b/lib/crc64.cc index 90ef5d7..7eb5445 100644 --- a/lib/crc64.cc +++ b/lib/crc64.cc @@ -65,13 +65,6 @@ namespace crucible { } } - // This function is only used for tests - uint64_t - Digest::CRC::crc64(const char *s) - { - return crc64(static_cast(s), strlen(s)); - } - uint64_t Digest::CRC::crc64(const void *p, size_t len) { diff --git a/test/crc64.cc b/test/crc64.cc index df3c674..e2207a2 100644 --- a/test/crc64.cc +++ b/test/crc64.cc @@ -5,18 +5,6 @@ using namespace crucible; -static -void -test_getcrc64_strings() -{ - assert(Digest::CRC::crc64("John") == 5942451273432301568); - assert(Digest::CRC::crc64("Paul") == 5838402100630913024); - assert(Digest::CRC::crc64("George") == 6714394476893704192); - assert(Digest::CRC::crc64("Ringo") == 6038837226071130112); - assert(Digest::CRC::crc64("") == 0); - assert(Digest::CRC::crc64("\377\277\300\200") == 15615382887346470912ULL); -} - static void test_getcrc64_byte_arrays() @@ -32,7 +20,6 @@ test_getcrc64_byte_arrays() int main(int, char**) { - RUN_A_TEST(test_getcrc64_strings()); RUN_A_TEST(test_getcrc64_byte_arrays()); exit(EXIT_SUCCESS);