Skip to content

Commit 1ff9f02

Browse files
committed
Further gut the PAST inclusion code.
1 parent e19b5fd commit 1ff9f02

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/PASTRegex.pir

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@
2525
.end
2626

2727
.sub '' :load :init :outer('PAST_Outer')
28-
# Create a serialization context for this compilation unit.
29-
.local pmc sc
30-
sc = nqp_create_sc "__PAST_CORE_SC__"
31-
nqp_push_compiling_sc sc
32-
3328
# Run the main block.
3429
.const 'Sub' $P2 = 'PAST_Outer'
3530
$P2()
@@ -39,20 +34,5 @@
3934
.include 'src/cheats/parrot-sub.pir'
4035

4136
.sub '' :anon :load :init :outer('PAST_Outer') :subid('Imports')
42-
# Also want the dumper.
4337
load_bytecode 'dumper.pbc'
44-
45-
.local pmc KnowHOW, how, PAST
46-
KnowHOW = get_knowhow
47-
PAST = KnowHOW."new_type"("name"=>"PAST")
48-
how = get_how PAST
49-
how."compose"(PAST)
50-
51-
# Add PAST dummy NS to the SC.
52-
$P0 = nqp_get_sc "__PAST_CORE_SC__"
53-
nqp_set_sc_object "__PAST_CORE_SC__", 0, PAST
54-
nqp_set_sc_for_object PAST, $P0
55-
56-
# Pop SC off current SCs stack.
57-
nqp_pop_compiling_sc
5838
.end

0 commit comments

Comments
 (0)