These are already pre-required by the OptDeps check
Peter Rabbitson [Fri, 24 Oct 2014 18:00:03 +0000 (20:00 +0200)]
lib/DBIx/Class/Optional/Dependencies.pm
lib/DBIx/Class/SQLMaker/Oracle.pm

index 27d3817..3b133ec 100644 (file)
@@ -51,6 +51,7 @@ my $datetime_basic = {
 };
 
 my $id_shortener = {
+  'Digest::MD5'                   => '0',
   'Math::BigInt'                  => '1.80',
   'Math::Base36'                  => '0.07',
 };
index 7f42855..3cad115 100644 (file)
@@ -145,9 +145,6 @@ sub _shorten_identifier {
   @keywords = $to_shorten unless @keywords;
 
   # get a base36 md5 of the identifier
-  require Digest::MD5;
-  require Math::BigInt;
-  require Math::Base36;
   my $b36sum = Math::Base36::encode_base36(
     Math::BigInt->from_hex (
       '0x' . Digest::MD5::md5_hex ($to_shorten)