Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove superfluous proto method new(|) {*}
  • Loading branch information
lizmat committed Jul 29, 2015
1 parent 26589f2 commit eaf57d7
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/core/Backtrace.pm
Expand Up @@ -55,7 +55,6 @@ my class Backtrace {
self;
}

proto method new(|) {*}
multi method new(Mu $e, Int $offset = 0) {
$e.^name eq 'BOOTException'
?? self.new(nqp::backtrace(nqp::decont($e)), $offset)
Expand Down
1 change: 0 additions & 1 deletion src/core/Buf.pm
Expand Up @@ -4,7 +4,6 @@ my class X::Buf::Pack::NonASCII { ... }
my class X::Cannot::Infinite { ... }

my role Blob[::T = uint8] does Positional[T] does Stringy is repr('VMArray') is array_type(T) {
proto method new(|) { * }
multi method new() {
nqp::create(self)
}
Expand Down
1 change: 0 additions & 1 deletion src/core/Junction.pm
Expand Up @@ -3,7 +3,6 @@ my class Junction { # declared in BOOTSTRAP
# has Mu $!storage; # elements of Junction
# has str $!type; # type of Junction

proto method new(|) { * }
multi method new(\values, Str :$type!) {
my $junc := nqp::create(Junction);
nqp::bindattr($junc, Junction, '$!storage', values.eager);
Expand Down
1 change: 0 additions & 1 deletion src/core/Proc/Async.pm
Expand Up @@ -54,7 +54,6 @@ my class Proc::Async {
has $!exit_promise;
has @!promises;

proto method new(|) { * }
multi method new($path, *@args, :$w) { self.bless(:$path,:@args,:$w) }
multi method new(:$path!, :@args, :$w) {
DEPRECATED( 'new($path,@args)', :what('new(:path(),:args()) (from Proc::Async)') );
Expand Down
1 change: 0 additions & 1 deletion src/core/Range.pm
Expand Up @@ -7,7 +7,6 @@ my class Range is Iterable is Cool does Positional {
has $.excludes-max;
has $.infinite;

proto method new(|) { * }
# The order of "method new" declarations matters here, to ensure
# appropriate candidate tiebreaking when mixed type arguments
# are present (e.g., Range,Whatever or Real,Range).
Expand Down
1 change: 0 additions & 1 deletion src/core/native_array.pm
Expand Up @@ -437,7 +437,6 @@ class array is Iterable is repr('VMArray') {
}
}

proto method new(|) {*}
multi method new() {
self!validate-parameterized();
nqp::create(self)
Expand Down

0 comments on commit eaf57d7

Please sign in to comment.