Deprecate two internal methods: coerce_constraint() and typecast_constraints()
[gitmo/Mouse.git] / lib / Mouse / Util / TypeConstraints.pm
index 4ebb08a..9705b71 100644 (file)
@@ -189,11 +189,12 @@ sub role_type {
     );
 }
 
-# this is an original method for Mouse
 sub typecast_constraints {
     my($class, $pkg, $type, $value) = @_;
     Carp::croak("wrong arguments count") unless @_ == 4;
 
+    Carp::cluck("typecast_constraints() has been deprecated, which was an internal utility anyway");
+
     return $type->coerce($value);
 }