return $attr;
}
-sub compute_all_applicable_attributes {
- Carp::cluck('compute_all_applicable_attributes() has been deprecated')
- if Mouse::Util::_MOUSE_VERBOSE;
+sub compute_all_applicable_attributes { # DEPRECATED
+ Carp::cluck('compute_all_applicable_attributes() has been deprecated. Use get_all_attributes() instead');
+
return shift->get_all_attributes(@_)
}
return $cloned;
}
-sub clone_instance {
+sub clone_instance { # DEPRECATED
my ($class, $instance, %params) = @_;
- Carp::cluck('clone_instance has been deprecated. Use clone_object instead')
- if Mouse::Util::_MOUSE_VERBOSE;
+ Carp::cluck('clone_instance() has been deprecated. Use clone_object() instead');
+
return $class->clone_object($instance, %params);
}
sub _metaclass_cache { # DEPRECATED
my($class, $name) = @_;
+ Carp::cluck('_metaclass_cache() has been deprecated. Use Mouse::Util::get_metaclass_by_name() instead');
return $METAS{$name};
}
# add_attribute is an abstract method
sub get_attribute_map { # DEPRECATED
- Carp::cluck('get_attribute_map() has been deprecated');
+ Carp::cluck('get_attribute_map() has been deprecated. Use get_attribute_list() and get_attribute() instead');
return $_[0]->{attributes};
}