From 9ef86e67374301b2558ab519f86c76ceef317bb1 Mon Sep 17 00:00:00 2001 From: jnthn Date: Thu, 12 Mar 2015 17:39:44 +0100 Subject: [PATCH] Kill off the PARAMETERIZE_TYPE hack. --- src/Perl6/Metamodel/ClassHOW.nqp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/Perl6/Metamodel/ClassHOW.nqp b/src/Perl6/Metamodel/ClassHOW.nqp index 53c6250001d..63d0f0f9619 100644 --- a/src/Perl6/Metamodel/ClassHOW.nqp +++ b/src/Perl6/Metamodel/ClassHOW.nqp @@ -51,18 +51,6 @@ class Perl6::Metamodel::ClassHOW $obj } - method parameterize($obj, *@pos_args, *%named_args) { - # XXX This mechanism may well change. For now we pass these along - # to a PARAMETERIZE_TYPE method on the object if it has one. If - # not, we complain. - if nqp::can($obj, 'PARAMETERIZE_TYPE') { - $obj.PARAMETERIZE_TYPE(|@pos_args, |%named_args) - } - else { - nqp::die("Type " ~ self.name($obj) ~ " cannot accept type arguments") - } - } - # Adds a new fallback for method dispatch. Expects the specified # condition to have been met (passes it the object and method name), # and if it is calls $calculator with the object and method name to