aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-21 16:20:26 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-21 22:01:52 +0100
commitdd3736da2c72911ed8e7c3db6b45ae504d234af4 (patch)
tree1825fd067ea968cfb360c4ecb266c4f01de93789 /python
parent4a4ec386e6bb65a92cf11394aa2022fd06ac871f (diff)
downloadpaludis-dd3736da2c72911ed8e7c3db6b45ae504d234af4.tar.gz
paludis-dd3736da2c72911ed8e7c3db6b45ae504d234af4.tar.xz
There's no point in sync_interface
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 bca8cc646..83ef173ff 100644
--- a/python/repository.cc
+++ b/python/repository.cc
@@ -38,12 +38,6 @@ struct RepositoryWrapper :
Repository,
bp::wrapper<Repository>
{
- static RepositorySyncableInterface *
- get_syncable_interface(const Repository & self)
- {
- return self.syncable_interface();
- }
-
static RepositoryMirrorsInterface *
get_mirrors_interface(const Repository & self)
{
@@ -203,11 +197,6 @@ void expose_repository()
"entirely when looking for installable packages."
)
- .add_property("syncable_interface", bp::make_function(&RepositoryWrapper::get_syncable_interface,
- bp::return_internal_reference<>()),
- "[ro] RepositorySyncableInterface"
- )
-
.add_property("environment_variable_interface",
bp::make_function(&RepositoryWrapper::get_environment_variable_interface,
bp::return_internal_reference<>()),
@@ -285,16 +274,6 @@ void expose_repository()
;
/**
- * RepositorySyncableInterface
- */
- bp::class_<RepositorySyncableInterface, boost::noncopyable>
- (
- "RepositorySyncableInterface",
- "Interface for syncing for repositories.",
- bp::no_init
- );
-
- /**
* RepositoryEnvironmentVariableInterface
*/
bp::class_<RepositoryEnvironmentVariableInterface, boost::noncopyable>
diff --git a/python/repository_TEST.py b/python/repository_TEST.py
index 4f6908a4f..b6eb20847 100755
--- a/python/repository_TEST.py
+++ b/python/repository_TEST.py
@@ -107,10 +107,6 @@ class TestCase_02_RepositoryInterfaces(unittest.TestCase):
repo = db.fetch_repository("testrepo")
irepo = db.fetch_repository("installed")
- def test_03_syncable_interface(self):
- si = repo.syncable_interface
- self.assert_(isinstance(si, RepositorySyncableInterface))
-
def test_06_environment_variable_interface(self):
evi = repo.environment_variable_interface
self.assert_(isinstance(evi, RepositoryEnvironmentVariableInterface))