diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/additional_tests.cc | 2 | ||||
-rw-r--r-- | python/environment.cc | 17 | ||||
-rwxr-xr-x | python/environment_TEST.py | 3 |
3 files changed, 0 insertions, 22 deletions
diff --git a/python/additional_tests.cc b/python/additional_tests.cc index b9c39ebb8..28b5bf6d4 100644 --- a/python/additional_tests.cc +++ b/python/additional_tests.cc @@ -56,8 +56,6 @@ namespace environment kns->insert(KeywordName("keyword")); bool PALUDIS_ATTRIBUTE((unused)) b3(e.accept_keywords(kns, pid)); - e.mask_for_breakage(pid); - e.mask_for_user(pid, false); bool PALUDIS_ATTRIBUTE((unused)) b4(e.unmasked_by_user(pid, "")); diff --git a/python/environment.cc b/python/environment.cc index 369144310..8ed442bf9 100644 --- a/python/environment.cc +++ b/python/environment.cc @@ -84,17 +84,6 @@ class EnvironmentImplementationWrapper : throw PythonMethodNotImplemented("EnvironmentImplementation", "accept_keywords"); } - virtual const std::shared_ptr<const Mask> mask_for_breakage(const std::shared_ptr<const PackageID> & p) const - PALUDIS_ATTRIBUTE((warn_unused_result)) - { - std::unique_lock<std::recursive_mutex> l(get_mutex()); - - if (bp::override f = get_override("mask_for_breakage")) - return f(p); - else - throw PythonMethodNotImplemented("EnvironmentImplementation", "mask_for_breakage"); - } - virtual const std::shared_ptr<const Mask> mask_for_user(const std::shared_ptr<const PackageID> & p, const bool b) const PALUDIS_ATTRIBUTE((warn_unused_result)) { @@ -557,12 +546,6 @@ void expose_environment() "If the collection includes \"*\", should return true." ) - .def("mask_for_breakage", bp::pure_virtual(&EnvImp::mask_for_breakage), - "mask_for_breakage(PackageID) -> Mask\n" - "Do we have a 'breaks' mask for a particular package?\n\n" - "Returns None if no." - ) - .def("mask_for_user", bp::pure_virtual(&EnvImp::mask_for_user), "mask_for_user(PackageID, bool) -> Mask\n" "Do we have a 'user' mask for a particular package?\n\n" diff --git a/python/environment_TEST.py b/python/environment_TEST.py index ce8f5bce1..bba853bc9 100755 --- a/python/environment_TEST.py +++ b/python/environment_TEST.py @@ -76,9 +76,6 @@ class TestCase_04_Environment_subclassingd(unittest.TestCase): def accept_keywords(self, kns, pid): return False - def mask_for_breakage(self, pid): - return UserMask() - def mask_for_user(self, pid, b): return UserMask() |