From 91e6f6555b573ace9ffccbdaa2f362b799afb8cc Mon Sep 17 00:00:00 2001 From: franck cuny Date: Mon, 24 May 2010 12:44:58 +0200 Subject: [PATCH] parse config is useless now as we use config::gitlike --- lib/Blawd/Storage/API.pm | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/Blawd/Storage/API.pm b/lib/Blawd/Storage/API.pm index ad62e16..569c0ea 100644 --- a/lib/Blawd/Storage/API.pm +++ b/lib/Blawd/Storage/API.pm @@ -2,10 +2,9 @@ package Blawd::Storage::API; use Blawd::OO::Role; use Scalar::Util qw(reftype); -use YAML (); use Blawd::Entry; -requires 'find_entries', 'get_config', 'is_valid_location'; +requires 'find_entries', 'is_valid_location'; has location => ( isa => 'Str', @@ -15,17 +14,6 @@ has location => ( sub new_entry { shift; return {@_} } -sub parse_config { - my $self = shift; - my ($cfg_data) = @_; - my @parsed_cfg = YAML::Load($cfg_data); - if ( @parsed_cfg != 1 || reftype( $parsed_cfg[0] ) ne 'HASH' ) { - die "Config must be a hash"; - } - - return $parsed_cfg[0]; -} - 1; __END__