Skip to content

Commit

Permalink
Merge pull request #317 from MasterDuke17/master
Browse files Browse the repository at this point in the history
Remove some unused variables+accessor methods
  • Loading branch information
niner committed Nov 2, 2016
2 parents c1b2cb9 + 97e20d8 commit 81a85b9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/vm/moar/QAST/QASTOperationsMAST.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,18 @@ class MAST::InstructionList {
has @!instructions;
has $!result_reg;
has int $!result_kind;
has str $!filename;
has int $!lineno;

method new(@instructions, $result_reg, $result_kind, str :$filename = '<anon>', int :$lineno = 0) {
method new(@instructions, $result_reg, $result_kind) {
my $obj := nqp::create(self);
nqp::bindattr($obj, MAST::InstructionList, '@!instructions', @instructions);
nqp::bindattr($obj, MAST::InstructionList, '$!result_reg', $result_reg);
nqp::bindattr_i($obj, MAST::InstructionList, '$!result_kind', $result_kind);
nqp::bindattr_s($obj, MAST::InstructionList, '$!filename', $filename);
nqp::bindattr_i($obj, MAST::InstructionList, '$!lineno', $lineno);
$obj
}

method instructions() { @!instructions }
method result_reg() { $!result_reg }
method result_kind() { $!result_kind }
method filename() { $!filename }
method lineno() { $!lineno }

method append(MAST::InstructionList $other) {
push_ilist(@!instructions, $other);
Expand Down

0 comments on commit 81a85b9

Please sign in to comment.