diff options
author | 2015-03-05 20:46:58 +0100 | |
---|---|---|
committer | 2015-04-26 21:18:16 +0100 | |
commit | 979b883807c49ac2dd3e1c2dfcd1ad3e02c29217 (patch) | |
tree | fb8f80b70f881bb8be0d445b251e3762ff7bef0e | |
parent | dbdd5f4b1afb5ad0556dd93e3ab8fd15978d4eb5 (diff) | |
download | paludis-979b883807c49ac2dd3e1c2dfcd1ad3e02c29217.tar.gz paludis-979b883807c49ac2dd3e1c2dfcd1ad3e02c29217.tar.xz |
Remove functions flagged by -Wunused-function
Change-Id: I1a8eb113f9a182b166dcf614c70dee58b614209d
-rw-r--r-- | paludis/repositories/e/e_repository_TEST.cc | 6 | ||||
-rw-r--r-- | paludis/repositories/e/e_repository_TEST_exlibs.cc | 4 | ||||
-rw-r--r-- | paludis/repositories/e/e_repository_TEST_replacing.cc | 4 | ||||
-rw-r--r-- | paludis/repositories/e/vdb_repository_TEST.cc | 5 | ||||
-rw-r--r-- | paludis/repositories/unpackaged/unpackaged_repository_TEST.cc | 4 | ||||
-rw-r--r-- | paludis/util/deferred_construction_ptr_TEST.cc | 10 | ||||
-rw-r--r-- | paludis/util/whirlpool_TEST.cc | 7 |
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 b450ff58e..963d7f972 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 8fe42a8c0..e90205940 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 335cb3b68..a3a89b589 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 2d3640e8d..4c83cc0de 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 782aae909..f2edc5c05 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 0deca72d8..75baf8f32 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 d6e4bb40e..aee9bc99a 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) |