Skip to content

Commit

Permalink
remove remnants of Class::MOP
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Jul 11, 2013
1 parent 4017da4 commit 01b3cec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion etc/bench/bench.pl
Expand Up @@ -18,6 +18,7 @@
use Text::Table;
use Try::Tiny;
use YAML::Any qw(DumpFile);
use Module::Runtime qw(require_module);
use warnings;
use strict;

Expand Down Expand Up @@ -66,7 +67,7 @@ sub usage {
foreach my $name ( grep { /$drivers_pattern/ } keys(%cache_generators) ) {
try {
if ( my $req = $cache_generators{$name}->{req} ) {
Class::MOP::load_class($_) foreach @$req;
require_module($_) foreach @$req;
}
$caches{$name} = $cache_generators{$name}->{code}->();
}
Expand Down
4 changes: 2 additions & 2 deletions lib/CHI/Test.pm
Expand Up @@ -3,7 +3,7 @@
package CHI::Test;
use Log::Any::Test; # as early as possible
use List::MoreUtils qw(uniq);
use Class::MOP;
use Module::Runtime qw(require_module);
use CHI;
use CHI::Driver::Memory;
use strict;
Expand All @@ -29,7 +29,7 @@ sub export_to_level {
my ( $class, $level, $ignore ) = @_;

foreach my $package ( $class->packages_to_import() ) {
Class::MOP::load_class($package);
require_module($package);
my @export;
if ( $package eq 'Test::Deep' ) {

Expand Down
5 changes: 4 additions & 1 deletion lib/CHI/t/Driver.pm
Expand Up @@ -1701,7 +1701,10 @@ sub test_no_leak : Tests {
ok( !defined($weakref), "weakref is no longer defined - cache was freed" );
}

Class::MOP::Class->create( 'My::CHI' => ( superclasses => ['CHI'] ) );
{
package My::CHI;
our @ISA = qw(CHI);
}

sub test_driver_properties : Tests {
my $self = shift;
Expand Down

0 comments on commit 01b3cec

Please sign in to comment.