Skip to content

Commit

Permalink
parse config is useless now as we use config::gitlike
Browse files Browse the repository at this point in the history
  • Loading branch information
fcuny authored and perigrin committed Oct 24, 2010
1 parent 276d822 commit 91e6f65
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions lib/Blawd/Storage/API.pm
Expand Up @@ -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',
Expand All @@ -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__
Expand Down

0 comments on commit 91e6f65

Please sign in to comment.