Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove dead code
Since we have CompUnitRepo objects living in @*INC, I don't see how this could
ever work.  Removal does not seem to break anything at all in spectesting.
  • Loading branch information
lizmat committed Aug 2, 2014
1 parent 32549fc commit 22b0fec
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Perl6/ModuleLoader.nqp
Expand Up @@ -36,20 +36,6 @@ class Perl6::ModuleLoader does Perl6::ModuleLoaderVMConfig {
}

method search_path() {
# See if we have an @*INC set up, and if so just use that.
my $PROCESS := nqp::gethllsym('perl6', 'PROCESS');
if !nqp::isnull($PROCESS) && nqp::existskey($PROCESS.WHO, '@INC') {
my $INC := ($PROCESS.WHO)<@INC>;
if nqp::defined($INC) {
my @INC := $INC.FLATTENABLE_LIST();
if +@INC {
return @INC;
}
}
}

# Too early to have @*INC; probably no setting yet loaded to provide
# the PROCESS initialization.
my @search_paths;
@search_paths.push('.');
@search_paths.push('blib');
Expand Down

0 comments on commit 22b0fec

Please sign in to comment.