Skip to content

Commit ab4d993

Browse files
committed
Comments out unused code
Closes #8, still refs #5
1 parent 85114b0 commit ab4d993

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

lib/CompUnit/PrecompilationRepository/Document.pm6

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@ class CompUnit::PrecompilationRepository::Document is CompUnit::PrecompilationRe
3434
Nil
3535
}
3636

37-
#| Loads a file, returns a handle for precompiled file and checksum. Needs an $id for the precompilation unit, an IO::Path and an array of Compunit::Precompilation store that is assigned by default
38-
multi method load(
39-
CompUnit::PrecompilationId $id,
40-
IO::Path :$source,
41-
CompUnit::PrecompilationStore :@precomp-stores = Array[CompUnit::PrecompilationStore].new($.store),
42-
) {
43-
my $compiler-id = CompUnit::PrecompilationId.new-without-check($*PERL.compiler.id);
44-
my $unit = self!load-file(@precomp-stores, $id);
45-
if $unit {
46-
return (self!load-handle-for-path($unit), $unit.checksum);
47-
}
48-
else {
49-
$unit.close;
50-
}
51-
Nil
52-
}
37+
# #| Loads a file, returns a handle for precompiled file and checksum. Needs an $id for the precompilation unit, an IO::Path and an array of Compunit::Precompilation store that is assigned by default
38+
# multi method load-x(
39+
# CompUnit::PrecompilationId $id,
40+
# IO::Path :$source,
41+
# CompUnit::PrecompilationStore :@precomp-stores = Array[CompUnit::PrecompilationStore].new($.store),
42+
# ) {
43+
# my $compiler-id = CompUnit::PrecompilationId.new-without-check($*PERL.compiler.id);
44+
# my $unit = self!load-file(@precomp-stores, $id);
45+
# if $unit {
46+
# return (self!load-handle-for-path($unit), $unit.checksum);
47+
# }
48+
# else {
49+
# $unit.close;
50+
# }
51+
# Nil
52+
# }
5353
}

t/007-load-precompile.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ for <simple sub/simple> -> $doc-name {
1717
$precomp.precompile("t/doctest/$doc-name.pod6".IO, $key, :force );
1818
my $handle = $precomp.load($key)[0];
1919
my $precompiled-pod = nqp::atkey($handle.unit,'$=pod')[0];
20-
is-deeply $precompiled-pod, $=pod[0], "Load precompiled pod";
20+
is-deeply $precompiled-pod, $=pod[0], "Load precompiled pod $doc-name";
2121
}
2222

2323
rmtree(cache-name);

t/040-pod-extraction.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ throws-like { $cache.freeze }, Exception, :message(/'Cannot freeze because some
4343
ok $cache.update-cache, 'updates without problem';
4444

4545
#--MARKER-- Test 7
46-
like $cache.pod('a-second-pod-file')[0].contents[1].contents[0], /'Some extra changed text but now it is changed'/, 'new version after update';
46+
like $cache.pod('a-second-pod-file')[0].contents[1].contents[0], /'Some more text but now it is changed'/, 'new version after update';
4747
#--MARKER-- Test 8
4848
lives-ok { $cache.freeze }, 'All updated so now can freeze';
4949

0 commit comments

Comments
 (0)