From: Peter Rabbitson Date: Fri, 8 May 2009 15:24:54 +0000 (+0000) Subject: Remove redundant var X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b1e4a1df5cd0a3cdf744e94254096196e371a5d7;p=dbsrgits%2FDBIx-Class-Historic.git Remove redundant var --- diff --git a/lib/DBIx/Class/InflateColumn/DateTime.pm b/lib/DBIx/Class/InflateColumn/DateTime.pm index 4881122..02aec53 100644 --- a/lib/DBIx/Class/InflateColumn/DateTime.pm +++ b/lib/DBIx/Class/InflateColumn/DateTime.pm @@ -132,13 +132,11 @@ sub register_column { # the resulting deflator as a circular reference. my %info = ( '_ic_dt_method' => $type , %{ $info } ); - my $floating_tz_ok; if (defined $info->{extra}{floating_tz_ok}) { warn "Putting floating_tz_ok into extra => { floating_tz_ok => 1 } has been deprecated, ". "please put it directly into the columns definition."; - $floating_tz_ok = $info->{extra}{floating_tz_ok}; + $info{floating_tz_ok} = $info->{extra}{floating_tz_ok}; } - $info{floating_tz_ok} = $floating_tz_ok unless defined $info{floating_tz_ok}; $self->inflate_column( $column =>