aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-09 11:59:01 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-09 11:59:01 +0000
commit497cc7f0b8bd0c344f3d8044497aa7926e80c371 (patch)
treeb136bb741485b3f6bcb7cbfd635ec7449beac52e
parentb8a7940cdc7968bb5ee10f1a85feec41889b1325 (diff)
downloadpaludis-497cc7f0b8bd0c344f3d8044497aa7926e80c371.tar.gz
paludis-497cc7f0b8bd0c344f3d8044497aa7926e80c371.tar.xz
Dead code
-rw-r--r--paludis/util/md5_TEST.cc38
1 files changed, 1 insertions, 37 deletions
diff --git a/paludis/util/md5_TEST.cc b/paludis/util/md5_TEST.cc
index 61e57ed..009a9c7 100644
--- a/paludis/util/md5_TEST.cc
+++ b/paludis/util/md5_TEST.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2006 Ciaran McCreesh
+ * Copyright (c) 2006, 2007 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -24,42 +24,6 @@
using namespace paludis;
using namespace test;
-namespace
-{
- /**
- * \name Test utilities
- * \{
- */
-
- 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;
- }
-
- /**
- * \}
- */
-}
-
namespace test_cases
{
/**