aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2014-09-17 20:09:50 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2014-09-17 20:09:50 +0100
commite50565b501d2e1484a92b62c41ae9628d6a51b53 (patch)
tree502e7ae3f2c1291600f6175ffc747fbe3f61d7f8 /python
parent484fd93ff91f84c5e89cd4ef69ccf9a4fa15aee6 (diff)
downloadpaludis-e50565b501d2e1484a92b62c41ae9628d6a51b53.tar.gz
paludis-e50565b501d2e1484a92b62c41ae9628d6a51b53.tar.xz
Remove 'breaks Portage' code
Diffstat (limited to 'python')
-rw-r--r--python/additional_tests.cc2
-rw-r--r--python/environment.cc17
-rwxr-xr-xpython/environment_TEST.py3
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()