From: Matt S Trout Date: Sun, 16 Sep 2018 22:28:51 +0000 (+0000) Subject: clean up notreached code X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=da4a096489d371b5dc190a48de969a32b970d05f;p=scpubgit%2FQ-Branch.git clean up notreached code --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 2d1a7b1..58d9d64 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 {