From: Matt S Trout Date: Sun, 16 Sep 2018 22:28:51 +0000 (+0000) Subject: clean up notreached code X-Git-Tag: v2.000000~3^2~478 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3faf5b16ce4b5d9e5a051d029932ba3942c540df;p=dbsrgits%2FSQL-Abstract.git clean up notreached code --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 9b42e5d..ac4e80c 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -574,7 +574,7 @@ sub _expand_expr { } elsif ($elref eq 'HASH') { push @res, $self->_expand_expr($el); } else { - die "unimplemented" + die "notreached"; } } return { '-'.$logic => \@res }; @@ -588,7 +588,6 @@ sub _expand_expr { } return +{ -value => $expr }; } - #::Ddie([ HUH => $expr ]); die "notreached"; } @@ -866,9 +865,7 @@ sub _expand_expr_hashpair { } return +{ -literal => [ $self->_quote($k).' '.$sql, @bind ] }; } - ::Ddie([ HUH => { $k => $v } ]); die "notreached"; - return { $k => $v }; } sub _recurse_where {