aboutsummaryrefslogtreecommitdiff
path: root/ruby
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 /ruby
parentc87b7d1425a65754ca48ff5b95859ac5686aea0d (diff)
downloadpaludis-1bbf308315fc7c0d1e571586df9368460f3b787d.tar.gz
paludis-1bbf308315fc7c0d1e571586df9368460f3b787d.tar.xz
No need for metadata provide keys
Diffstat (limited to 'ruby')
-rw-r--r--ruby/metadata_key.cc15
-rw-r--r--ruby/package_id_TEST.rb2
2 files changed, 1 insertions, 16 deletions
diff --git a/ruby/metadata_key.cc b/ruby/metadata_key.cc
index 43bfb2032..3ae309715 100644
--- a/ruby/metadata_key.cc
+++ b/ruby/metadata_key.cc
@@ -50,7 +50,6 @@ namespace
static VALUE c_metadata_fsentry_key;
static VALUE c_metadata_fsentry_sequence_key;
static VALUE c_metadata_key_type;
- static VALUE c_metadata_provide_spec_tree_key;
static VALUE c_metadata_license_spec_tree_key;
static VALUE c_metadata_fetchable_uri_spec_tree_key;
static VALUE c_metadata_simple_uri_spec_tree_key;
@@ -206,12 +205,6 @@ namespace
new std::shared_ptr<const MetadataKey>(mm));
}
- void visit(const MetadataSpecTreeKey<ProvideSpecTree> &)
- {
- value = Data_Wrap_Struct(c_metadata_provide_spec_tree_key, 0, &Common<std::shared_ptr<const MetadataKey> >::free,
- new std::shared_ptr<const MetadataKey>(mm));
- }
-
void visit(const MetadataSpecTreeKey<DependencySpecTree> &)
{
value = Data_Wrap_Struct(c_metadata_dependency_spec_tree_key, 0, &Common<std::shared_ptr<const MetadataKey> >::free,
@@ -768,14 +761,6 @@ namespace
rb_define_method(c_metadata_license_spec_tree_key, "parse_value", RUBY_FUNC_CAST((&SpecTreeValue<LicenseSpecTree>::fetch)), 0);
/*
- * Document-class: Paludis::MetadataProvideSpecTreeKey
- *
- * Metadata class for provide specs.
- */
- c_metadata_provide_spec_tree_key = rb_define_class_under(paludis_module(), "MetadataProvideSpecTreeKey", c_metadata_key);
- rb_define_method(c_metadata_provide_spec_tree_key, "parse_value", RUBY_FUNC_CAST((&SpecTreeValue<ProvideSpecTree>::fetch)), 0);
-
- /*
* Document-class: Paludis::MetadataPlainTextSpecTreeKey
*
* Metadata class for restrict specs.
diff --git a/ruby/package_id_TEST.rb b/ruby/package_id_TEST.rb
index 2c2e8d969..d30348d4c 100644
--- a/ruby/package_id_TEST.rb
+++ b/ruby/package_id_TEST.rb
@@ -157,7 +157,7 @@ module Paludis
def test_each_metadata
keys = { "DESCRIPTION" => 1, "INHERITED" => 1, "KEYWORDS" => 1, "EAPI" => 1,
- "DEPEND" => 1, "RDEPEND" => 1, "PDEPEND" => 1, "LICENSE" => 1, "PROVIDE" => 1,
+ "DEPEND" => 1, "RDEPEND" => 1, "PDEPEND" => 1, "LICENSE" => 1,
"RESTRICT" => 1, "SRC_URI" => 1, "HOMEPAGE" => 1, "EBUILD" => 1, "IUSE" => 1,
"PALUDIS_CHOICES" => 1, "DEFINED_PHASES" => 1, "SLOT" => 1 }
pid_testrepo.each_metadata do | key |