Skip to content

Commit 758068b

Browse files
haargbingos
authored andcommitted
remove unused _find_magic_vstring function
1 parent 880f32d commit 758068b

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

lib/ExtUtils/MakeMaker.pm

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,26 +1336,6 @@ sub neatvalue {
13361336
return "{ ".join(', ',@m)." }";
13371337
}
13381338

1339-
sub _find_magic_vstring {
1340-
my $value = shift;
1341-
return $value if $UNDER_CORE;
1342-
my $tvalue = '';
1343-
require B;
1344-
my $sv = B::svref_2object(\$value);
1345-
my $magic = ref($sv) eq 'B::PVMG' ? $sv->MAGIC : undef;
1346-
while ( $magic ) {
1347-
if ( $magic->TYPE eq 'V' ) {
1348-
$tvalue = $magic->PTR;
1349-
$tvalue =~ s/^v?(.+)$/v$1/;
1350-
last;
1351-
}
1352-
else {
1353-
$magic = $magic->MOREMAGIC;
1354-
}
1355-
}
1356-
return $tvalue;
1357-
}
1358-
13591339
sub selfdocument {
13601340
my($self) = @_;
13611341
my(@m);

0 commit comments

Comments
 (0)