remove last use of Best (that should have come out in 2010!)
[gitmo/MooseX-Storage.git] / lib / MooseX / Storage / Util.pm
index 91ad692..01d72e0 100644 (file)
@@ -44,16 +44,10 @@ sub _inflate_json {
 sub _inflate_yaml {
     my ($self, $yaml) = @_;
 
-    require Best;
-    eval { Best->import([[ qw[YAML::Syck YAML] ]]) };
+    eval { require YAML::Any; YAML::Any->import };
     confess "Could not load YAML module because : $@" if $@;
 
-    my $inflater = Best->which('YAML::Syck')->can('Load');
-
-    (defined $inflater)
-        || confess "Could not load the YAML inflator";
-
-    my $data = eval { $inflater->($yaml) };
+    my $data = eval { Load($yaml) };
     if ($@) {
         confess "There was an error when attempting to peek at YAML : $@";
     }