Skip to content

Commit

Permalink
Dancer::Session cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Sukrieh committed Jan 29, 2010
1 parent 68804d2 commit 582354d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions lib/Dancer/Session.pm
Expand Up @@ -10,16 +10,6 @@ use Dancer::Config 'setting';
my $ENGINE = undef;
sub engine {$ENGINE}

sub set_engine {
my ($engine) = @_;
$ENGINE = $engine;
eval "use $ENGINE";
die "Unable to load session engine `$ENGINE': $@" if $@;
engine->init();
}

sub get { get_current_session() }

# This wrapper look for the session engine and try to load it.
sub init {
my ($class, $setting) = @_;
Expand Down Expand Up @@ -48,6 +38,8 @@ sub get_current_session {
return $session;
}

sub get { get_current_session() }

sub read {
my ($class, $key) = @_;
my $session = get_current_session();
Expand Down

0 comments on commit 582354d

Please sign in to comment.