Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Remove no-longer-used $!type attribute. (It may get replaced with
Browse files Browse the repository at this point in the history
something else, though.)
  • Loading branch information
pmichaud committed Nov 8, 2009
1 parent 5910ede commit e8e145d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/Regex/Cursor.pir
Expand Up @@ -22,7 +22,7 @@ grammars.
load_bytecode 'P6object.pbc'
.local pmc p6meta
p6meta = new 'P6metaclass'
$P0 = p6meta.'new_class'('Regex::Cursor', 'attr'=>'$!target $!from $!pos $!match $!names $!debug $!type @!bstack @!cstack @!caparray')
$P0 = p6meta.'new_class'('Regex::Cursor', 'attr'=>'$!target $!from $!pos $!match $!names $!debug @!bstack @!cstack @!caparray')
$P0 = box 0
set_global '$!generation', $P0
$P0 = new ['Boolean']
Expand Down Expand Up @@ -258,7 +258,7 @@ provided, then the new cursor has the same type as lang.
parrotclass = getattribute $P0, 'parrotclass'
cur = new parrotclass

.local pmc from, pos, target, debug, type
.local pmc from, pos, target, debug

from = getattribute self, '$!pos'
setattribute cur, '$!from', from
Expand All @@ -269,12 +269,6 @@ provided, then the new cursor has the same type as lang.
debug = getattribute self, '$!debug'
setattribute cur, '$!debug', debug

# type = getattribute self, '$!type'
# if null type goto type_done
# if type != CURSOR_TYPE_PEEK goto type_done
# die "Attempt to create initial cursor from PEEK"
type_done:

.return (cur, from, target, from)
.end

Expand Down

0 comments on commit e8e145d

Please sign in to comment.