Skip to content

Commit 4ffa0c2

Browse files
committed
Remove ifdefs for JVM now that we have getstrfromname op
Tests are in place so this code is now not needed anymore and we can use the same code for both backends.
1 parent 5409c85 commit 4ffa0c2

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/HLL/Actions.nqp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -203,20 +203,11 @@ class HLL::Actions {
203203
}
204204

205205
method charname($/) {
206-
#?if !moar
207-
my $codepoint := $<integer>
208-
?? $<integer>.made
209-
!! nqp::codepointfromname(~$/);
210-
$/.CURSOR.panic("Unrecognized character name, '$/'") if $codepoint < 0;
211-
make nqp::chr($codepoint);
212-
#?endif
213-
#?if moar
214206
my $codepoint := $<integer>
215207
?? nqp::chr($<integer>.made)
216208
!! nqp::getstrfromname(~$/);
217209
$/.CURSOR.panic("Unrecognized character name '$/'") if $codepoint eq '';
218210
make $codepoint;
219-
#?endif
220211
}
221212

222213
method charnames($/) {

0 commit comments

Comments
 (0)