aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-12 00:50:11 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-12 01:12:11 +0100
commit1bbf308315fc7c0d1e571586df9368460f3b787d (patch)
tree22c15fdfccfc1c504f1afdc5dc2451e2e5303460 /python
parentc87b7d1425a65754ca48ff5b95859ac5686aea0d (diff)
downloadpaludis-1bbf308315fc7c0d1e571586df9368460f3b787d.tar.gz
paludis-1bbf308315fc7c0d1e571586df9368460f3b787d.tar.xz
No need for metadata provide keys
Diffstat (limited to 'python')
-rw-r--r--python/additional_tests.cc1
-rw-r--r--python/metadata_key.cc6
-rwxr-xr-xpython/metadata_key_TEST.py28
3 files changed, 0 insertions, 35 deletions
diff --git a/python/additional_tests.cc b/python/additional_tests.cc
index 6f906dac5..a9671ff2e 100644
--- a/python/additional_tests.cc
+++ b/python/additional_tests.cc
@@ -222,7 +222,6 @@ void expose_additional_tests()
bp::def("test_metadata_keyword_name_set_key", &metadata_key::test_metadata_set_key<KeywordNameSet>);
bp::def("test_metadata_string_set_key", &metadata_key::test_metadata_set_key<Set<std::string> >);
bp::def("test_metadata_license_spec_tree_key", &metadata_key::test_metadata_spec_tree_key<LicenseSpecTree>);
- bp::def("test_metadata_provide_spec_tree_key", &metadata_key::test_metadata_spec_tree_key<ProvideSpecTree>);
bp::def("test_metadata_dependency_spec_tree_key", &metadata_key::test_metadata_spec_tree_key<DependencySpecTree>);
bp::def("test_metadata_plain_text_spec_tree_key", &metadata_key::test_metadata_spec_tree_key<PlainTextSpecTree>);
bp::def("test_metadata_fetchable_uri_spec_tree_key", &metadata_key::test_metadata_spec_tree_key<FetchableURISpecTree>);
diff --git a/python/metadata_key.cc b/python/metadata_key.cc
index 6a2dc0e10..4b362836c 100644
--- a/python/metadata_key.cc
+++ b/python/metadata_key.cc
@@ -120,11 +120,6 @@ class MetadataKeySptrToPythonVisitor
obj = bp::object(std::static_pointer_cast<const MetadataSpecTreeKey<LicenseSpecTree> >(_m_ptr));
}
- void visit(const MetadataSpecTreeKey<ProvideSpecTree> & k)
- {
- obj = bp::object(std::static_pointer_cast<const MetadataSpecTreeKey<ProvideSpecTree> >(_m_ptr));
- }
-
void visit(const MetadataSpecTreeKey<DependencySpecTree> & k)
{
obj = bp::object(std::static_pointer_cast<const MetadataSpecTreeKey<DependencySpecTree> >(_m_ptr));
@@ -1236,7 +1231,6 @@ void expose_metadata_key()
* MetadataSpecTreeKeys
*/
class_spec_tree_key<LicenseSpecTree>("LicenseSpecTree");
- class_spec_tree_key<ProvideSpecTree>("ProvideSpecTree");
class_spec_tree_key<DependencySpecTree>("DependencySpecTree");
class_spec_tree_key<PlainTextSpecTree>("PlainTextSpecTree");
class_spec_tree_key<RequiredUseSpecTree>("RequiredUseSpecTree");
diff --git a/python/metadata_key_TEST.py b/python/metadata_key_TEST.py
index f5fbbb60a..776fdc6fc 100755
--- a/python/metadata_key_TEST.py
+++ b/python/metadata_key_TEST.py
@@ -219,34 +219,6 @@ class TestCase_02_MetadataKeys_suclassing(unittest.TestCase):
test_metadata_license_spec_tree_key(TestKey())
- def test_11_provide_spec_tree(self):
- class TestKey(MetadataProvideSpecTreeKey):
- def __init__(self):
- MetadataProvideSpecTreeKey.__init__(self)
- self.e = NoConfigEnvironment(repo_path, "/var/empty")
-
- def parse_value(self):
- return AllDepSpec()
-
- def pretty_print(self, f):
- pds = parse_user_package_dep_spec("cat/pkg", self.e, [])
- return f.format_package_dep_spec_plain(pds)
-
- def pretty_print_flat(self, f):
- pds = parse_user_package_dep_spec("cat/pkg", self.e, [])
- return f.format_package_dep_spec_plain(pds)
-
- def raw_name(self):
- return "raw"
-
- def human_name(self):
- return "human"
-
- def type(self):
- return MetadataKeyType.NORMAL
-
- test_metadata_provide_spec_tree_key(TestKey())
-
def test_12_dependency_spec_tree(self):
class TestKey(MetadataDependencySpecTreeKey):
def __init__(self):