aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Wouter van Kesteren <woutershep@gmail.com> 2015-03-05 20:46:58 +0100
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2015-04-26 21:18:16 +0100
commit979b883807c49ac2dd3e1c2dfcd1ad3e02c29217 (patch)
treefb8f80b70f881bb8be0d445b251e3762ff7bef0e
parentdbdd5f4b1afb5ad0556dd93e3ab8fd15978d4eb5 (diff)
downloadpaludis-979b883807c49ac2dd3e1c2dfcd1ad3e02c29217.tar.gz
paludis-979b883807c49ac2dd3e1c2dfcd1ad3e02c29217.tar.xz
Remove functions flagged by -Wunused-function
-rw-r--r--paludis/repositories/e/e_repository_TEST.cc6
-rw-r--r--paludis/repositories/e/e_repository_TEST_exlibs.cc4
-rw-r--r--paludis/repositories/e/e_repository_TEST_replacing.cc4
-rw-r--r--paludis/repositories/e/vdb_repository_TEST.cc5
-rw-r--r--paludis/repositories/unpackaged/unpackaged_repository_TEST.cc4
-rw-r--r--paludis/util/deferred_construction_ptr_TEST.cc10
-rw-r--r--paludis/util/whirlpool_TEST.cc7
7 files changed, 0 insertions, 40 deletions
diff --git a/paludis/repositories/e/e_repository_TEST.cc b/paludis/repositories/e/e_repository_TEST.cc
index b450ff5..963d7f9 100644
--- a/paludis/repositories/e/e_repository_TEST.cc
+++ b/paludis/repositories/e/e_repository_TEST.cc
@@ -65,12 +65,6 @@ using namespace paludis;
namespace
{
- void cannot_uninstall(const std::shared_ptr<const PackageID> & id, const UninstallActionOptions &)
- {
- if (id)
- throw InternalError(PALUDIS_HERE, "cannot uninstall");
- }
-
std::shared_ptr<OutputManager> make_standard_output_manager(const Action &)
{
return std::make_shared<StandardOutputManager>();
diff --git a/paludis/repositories/e/e_repository_TEST_exlibs.cc b/paludis/repositories/e/e_repository_TEST_exlibs.cc
index 8fe42a8..e902059 100644
--- a/paludis/repositories/e/e_repository_TEST_exlibs.cc
+++ b/paludis/repositories/e/e_repository_TEST_exlibs.cc
@@ -81,10 +81,6 @@ namespace
return mm->second;
}
- void dummy_used_this_for_config_protect(const std::string &)
- {
- }
-
WantPhase want_all_phases(const std::string &)
{
return wp_yes;
diff --git a/paludis/repositories/e/e_repository_TEST_replacing.cc b/paludis/repositories/e/e_repository_TEST_replacing.cc
index 335cb3b..a3a89b5 100644
--- a/paludis/repositories/e/e_repository_TEST_replacing.cc
+++ b/paludis/repositories/e/e_repository_TEST_replacing.cc
@@ -76,10 +76,6 @@ namespace
return mm->second;
}
- void dummy_used_this_for_config_protect(const std::string &)
- {
- }
-
WantPhase want_all_phases(const std::string &)
{
return wp_yes;
diff --git a/paludis/repositories/e/vdb_repository_TEST.cc b/paludis/repositories/e/vdb_repository_TEST.cc
index 2d3640e..4c83cc0 100644
--- a/paludis/repositories/e/vdb_repository_TEST.cc
+++ b/paludis/repositories/e/vdb_repository_TEST.cc
@@ -83,11 +83,6 @@ namespace
return wp_yes;
}
- bool ignore_nothing(const FSPath &)
- {
- return false;
- }
-
struct ContentsGatherer
{
std::string _str;
diff --git a/paludis/repositories/unpackaged/unpackaged_repository_TEST.cc b/paludis/repositories/unpackaged/unpackaged_repository_TEST.cc
index 782aae9..f2edc5c 100644
--- a/paludis/repositories/unpackaged/unpackaged_repository_TEST.cc
+++ b/paludis/repositories/unpackaged/unpackaged_repository_TEST.cc
@@ -56,10 +56,6 @@ namespace
return std::make_shared<StandardOutputManager>();
}
- void dummy_used_this_for_config_protect(const std::string &)
- {
- }
-
WantPhase want_all_phases(const std::string &)
{
return wp_yes;
diff --git a/paludis/util/deferred_construction_ptr_TEST.cc b/paludis/util/deferred_construction_ptr_TEST.cc
index 0deca72..75baf8f 100644
--- a/paludis/util/deferred_construction_ptr_TEST.cc
+++ b/paludis/util/deferred_construction_ptr_TEST.cc
@@ -26,16 +26,6 @@ using namespace paludis;
namespace
{
- int * make_ten()
- {
- return new int(10);
- }
-
- std::shared_ptr<int> make_ten_shared()
- {
- return std::make_shared<int>(10);
- }
-
std::string * make_monkey()
{
return new std::string("monkey");
diff --git a/paludis/util/whirlpool_TEST.cc b/paludis/util/whirlpool_TEST.cc
index d6e4bb4..aee9bc9 100644
--- a/paludis/util/whirlpool_TEST.cc
+++ b/paludis/util/whirlpool_TEST.cc
@@ -56,13 +56,6 @@ namespace
Whirlpool s(ss);
return s.hexsum();
}
-
- std::string whirlpool_dehex(const std::string & data)
- {
- std::stringstream ss(dehex(data));
- Whirlpool s(ss);
- return s.hexsum();
- }
}
TEST(Whirlpool, t0)