diff options
author | 2011-06-12 01:11:43 +0100 | |
---|---|---|
committer | 2011-06-12 01:12:11 +0100 | |
commit | 0c9893ceeca308897238e4c2190607d570f7feba (patch) | |
tree | 9c705b1f4bb1ece4790f3f547e993f4d72e8cd0f /ruby | |
parent | 8653241b4e943999757f30451f24a2ccc8d9862c (diff) | |
download | paludis-0c9893ceeca308897238e4c2190607d570f7feba.tar.gz paludis-0c9893ceeca308897238e4c2190607d570f7feba.tar.xz |
Kill AssociationMask
Diffstat (limited to 'ruby')
-rw-r--r-- | ruby/mask.cc | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/ruby/mask.cc b/ruby/mask.cc index 95b2a1a93..a08a370ce 100644 --- a/ruby/mask.cc +++ b/ruby/mask.cc @@ -32,7 +32,6 @@ namespace static VALUE c_unaccepted_mask; static VALUE c_repository_mask; static VALUE c_unsupported_mask; - static VALUE c_association_mask; static VALUE c_overridden_mask; static VALUE c_mask_override_reason; @@ -69,12 +68,6 @@ namespace value = Data_Wrap_Struct(c_repository_mask, 0, &Common<std::shared_ptr<const Mask> >::free, new std::shared_ptr<const Mask>(mm)); } - - void visit(const AssociationMask &) - { - value = Data_Wrap_Struct(c_association_mask, 0, &Common<std::shared_ptr<const Mask> >::free, - new std::shared_ptr<const Mask>(mm)); - } }; VALUE @@ -159,21 +152,6 @@ namespace /* * call-seq: - * associated_package_spec -> PackageDepSpec - * - * Fetch the associated package. - */ - VALUE - association_mask_associated_package(VALUE self) - { - std::shared_ptr<const Mask> * ptr; - Data_Get_Struct(self, std::shared_ptr<const Mask>, ptr); - std::shared_ptr<const AssociationMask> cast_ptr(std::static_pointer_cast<const AssociationMask>(*ptr)); - return package_dep_spec_to_value((cast_ptr)->associated_package_spec()); - } - - /* - * call-seq: * mask -> Mask */ VALUE @@ -253,18 +231,6 @@ namespace RUBY_FUNC_CAST((&MaskStringKey<UnsupportedMask,&UnsupportedMask::explanation>::fetch)), 0); /* - * Document-class: Paludis::AssociationMask - * - * An AssociationMask is a Mask that signifies that a PackageID is masked because of its association with - * another PackageID that is itself masked. - * - * This is used by old-style virtuals. If the provider of a virtual is masked then the virtual itself is - * masked by association. - */ - c_association_mask = rb_define_class_under(paludis_module(), "AssociationMask", c_mask); - rb_define_method(c_association_mask, "associated_package_spec", RUBY_FUNC_CAST(&association_mask_associated_package), 0); - - /* * Document-class: Paludis::OverriddenMask * * An OverriddenMask holds a Mask and an explanation of why it has been overridden. |