aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-11 21:41:46 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-11 22:35:27 +0100
commite27dabb7c338116b1f496d09d51c6869e298e043 (patch)
tree8b59461d5c48861bf457964b62e14c1e6836c7b7 /python
parent213d61ac7e59b497355d13ab758b2dccd9d57792 (diff)
downloadpaludis-e27dabb7c338116b1f496d09d51c6869e298e043.tar.gz
paludis-e27dabb7c338116b1f496d09d51c6869e298e043.tar.xz
Remove ProvidesInterface
Diffstat (limited to 'python')
-rw-r--r--python/repository.cc21
-rwxr-xr-xpython/repository_TEST.py4
2 files changed, 0 insertions, 25 deletions
diff --git a/python/repository.cc b/python/repository.cc
index e1cc5e027..25e8821be 100644
--- a/python/repository.cc
+++ b/python/repository.cc
@@ -47,12 +47,6 @@ struct RepositoryWrapper :
return self.environment_variable_interface();
}
- static RepositoryProvidesInterface *
- get_provides_interface(const Repository & self)
- {
- return self.provides_interface();
- }
-
static RepositoryVirtualsInterface *
get_virtuals_interface(const Repository & self)
{
@@ -183,11 +177,6 @@ void expose_repository()
"[ro] RepositoryVirtualsInterface"
)
- .add_property("provides_interface", bp::make_function(&RepositoryWrapper::get_provides_interface,
- bp::return_internal_reference<>()),
- "[ro] RepositoryProvidesInterface"
- )
-
.add_property("destination_interface", bp::make_function(&RepositoryWrapper::get_destination_interface,
bp::return_internal_reference<>()),
"[ro] RepositoryDestinationInterface"
@@ -239,16 +228,6 @@ void expose_repository()
);
/**
- * RepositoryProvidesInterface
- */
- bp::class_<RepositoryProvidesInterface, boost::noncopyable>
- (
- "RepositoryProvidesInterface",
- "Interface for repositories that provide packages.",
- bp::no_init
- );
-
- /**
* RepositoryDestinationInterface
*/
bp::class_<RepositoryDestinationInterface, boost::noncopyable>
diff --git a/python/repository_TEST.py b/python/repository_TEST.py
index 3b4519c12..101282cbb 100755
--- a/python/repository_TEST.py
+++ b/python/repository_TEST.py
@@ -110,10 +110,6 @@ class TestCase_02_RepositoryInterfaces(unittest.TestCase):
evi = repo.environment_variable_interface
self.assert_(isinstance(evi, RepositoryEnvironmentVariableInterface))
- def test_08_provides_interface(self):
- pi = irepo.provides_interface
- self.assert_(isinstance(pi, RepositoryProvidesInterface))
-
def test_09_virtuals_interface(self):
vi = repo.virtuals_interface
self.assert_(isinstance(vi, RepositoryVirtualsInterface))