aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Wouter van Kesteren <woutershep@gmail.com> 2015-05-07 23:03:23 +0200
committerAvatar Bo ├śrsted Andresen <zlin@exherbo.org> 2015-08-21 17:18:01 +0200
commitdd6bc465003c0ee9636768a33750535ab349e403 (patch)
tree03895e77a2bd417f9b5ac3cc6dfc276a507a0c7d
parent6ad3c8a3ab3fcae856e37e021d99d2d5ebb8efa5 (diff)
downloadpaludis-dd6bc465003c0ee9636768a33750535ab349e403.tar.gz
paludis-dd6bc465003c0ee9636768a33750535ab349e403.tar.xz
Another -Wunused-function
Change-Id: Id14385cfe0429ac5b0657e906ff8ad093d9dc852 Reviewed-on: https://galileo.mailstation.de/gerrit/1890 Retest: Wouter van Kesteren <woutershep@gmail.com> Reviewed-by: Kylie McClain <somasis@exherbo.org> Reviewed-by: Bo ├śrsted Andresen <zlin@exherbo.org>
-rw-r--r--paludis/util/whirlpool_TEST.cc24
1 files changed, 0 insertions, 24 deletions
diff --git a/paludis/util/whirlpool_TEST.cc b/paludis/util/whirlpool_TEST.cc
index aee9bc9..1f40de0 100644
--- a/paludis/util/whirlpool_TEST.cc
+++ b/paludis/util/whirlpool_TEST.cc
@@ -26,30 +26,6 @@ using namespace paludis;
namespace
{
- unsigned char dehex_c(unsigned char c)
- {
- if (c >= '0' && c <= '9')
- return c - '0';
- else if (c >= 'a' && c <= 'f')
- return c + 10 - 'a';
- else
- throw "meh!";
- }
-
- std::string dehex(const std::string & s)
- {
- std::string result;
- std::string::size_type p(0);
- while (p < s.length())
- {
- unsigned char c;
- c = (dehex_c(s.at(p)) << 4) + dehex_c(s.at(p + 1));
- result.append(1, c);
- p += 2;
- }
- return result;
- }
-
std::string whirlpool(const std::string & data)
{
std::stringstream ss(data);