Moose compat: Remove Mouse::Class->attributes method in favor of get_attribute_map
[gitmo/Mouse.git] / lib / Mouse / Class.pm
index a094887..c43c12d 100644 (file)
@@ -49,7 +49,6 @@ sub add_attribute {
     $self->{'attributes'}{$attr->name} = $attr;
 }
 
-sub attributes        { values %{ $_[0]->{'attributes'} } }
 sub get_attribute_map { $_[0]->{attributes} }
 sub get_attribute     { $_[0]->{attributes}->{$_[1]} }
 
@@ -86,10 +85,6 @@ Gets (or sets) the list of superclasses of the owner class.
 
 Begins keeping track of the existing L<Mouse::Attribute> for the owner class.
 
-=head2 attributes -> [Mouse::Attribute]
-
-Returns a list of L<Mouse::Attribute> objects.
-
 =head2 get_attribute_map -> { name => Mouse::Attribute }
 
 Returns a mapping of attribute names to their corresponding