Skip to content

Commit

Permalink
Merge pull request #2066 from ugexe/remove-universal-role
Browse files Browse the repository at this point in the history
Remove unused Universal role
  • Loading branch information
lizmat committed Jul 13, 2018
2 parents 6850a64 + 2670236 commit 83b4c8d
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/core/Systemic.pm6
Expand Up @@ -17,26 +17,4 @@ role Systemic {
method Str { $.name }
}

# Since we cannot see attributes of roles done by other roles, the below is
# a copy of the above (minus .desc), instead of doing the Universal role in
# Systemic (as is the spec). Once we can see attributes of roles of roles
# inside a class, we can fix this abomination.
role Universal {
has Str $.name;
has Str $.auth;
has Version $.version;
has Blob $.signature;

submethod BUILD(
:$!name = "unknown",
:$!auth = "unknown",
:$!version = Version.new("unknown"),
--> Nil
) {}
multi method gist(Universal:D:) {
$!name ~ (" ($!version)" if $!version.gist ne "vunknown")
}
method Str { $!name }
}

# vim: ft=perl6 expandtab sw=4

0 comments on commit 83b4c8d

Please sign in to comment.