From: Peter Rabbitson Date: Fri, 24 Oct 2014 17:56:15 +0000 (+0200) Subject: These loads are no longer necessary after d7d45bdc65 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=80d37ac72bc1a593fe7f2b0982fc828a70b384a2;p=dbsrgits%2FDBIx-Class.git These loads are no longer necessary after d7d45bdc65 --- diff --git a/lib/DBIx/Class/Schema.pm b/lib/DBIx/Class/Schema.pm index 6349037..563f065 100644 --- a/lib/DBIx/Class/Schema.pm +++ b/lib/DBIx/Class/Schema.pm @@ -1213,7 +1213,6 @@ reference to any schema, so are rather useless. sub thaw { my ($self, $obj) = @_; local $DBIx::Class::ResultSourceHandle::thaw_schema = $self; - require Storable; return Storable::thaw($obj); } @@ -1225,7 +1224,6 @@ it is just provided here for symmetry. =cut sub freeze { - require Storable; return Storable::nfreeze($_[1]); } @@ -1248,7 +1246,6 @@ objects so their references to the schema object sub dclone { my ($self, $obj) = @_; local $DBIx::Class::ResultSourceHandle::thaw_schema = $self; - require Storable; return Storable::dclone($obj); } diff --git a/t/lib/DBICTest.pm b/t/lib/DBICTest.pm index e9c83fb..8bfb572 100644 --- a/t/lib/DBICTest.pm +++ b/t/lib/DBICTest.pm @@ -344,7 +344,6 @@ sub init_schema { END { # Make sure we run after any cleanup in other END blocks - require B; push @{ B::end_av()->object_2svref }, sub { assert_empty_weakregistry($weak_registry, 'quiet'); }; diff --git a/t/lib/DBICTest/BaseSchema.pm b/t/lib/DBICTest/BaseSchema.pm index c68d7fd..f51328c 100644 --- a/t/lib/DBICTest/BaseSchema.pm +++ b/t/lib/DBICTest/BaseSchema.pm @@ -258,7 +258,6 @@ sub clone { END { # Make sure we run after any cleanup in other END blocks - require B; push @{ B::end_av()->object_2svref }, sub { assert_empty_weakregistry($weak_registry, 'quiet'); };