From: Matt S Trout Date: Sun, 29 Sep 2019 19:33:02 +0000 (+0000) Subject: nuke vestigial _join_sql_clauses method X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=38c0e9cc5b4a1aea12ce608840d75d72e310bf28;p=scpubgit%2FQ-Branch.git nuke vestigial _join_sql_clauses method --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index b279856..503ac9c 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -1799,23 +1799,6 @@ sub _assert_bindval_matches_bindtype { } } -sub _join_sql_clauses { - my ($self, $logic, $clauses_aref, $bind_aref) = @_; - - if (@$clauses_aref > 1) { - my $join = " " . $self->_sqlcase($logic) . " "; - my $sql = '( ' . join($join, @$clauses_aref) . ' )'; - return ($sql, @$bind_aref); - } - elsif (@$clauses_aref) { - return ($clauses_aref->[0], @$bind_aref); # no parentheses - } - else { - return (); # if no SQL, ignore @$bind_aref - } -} - - # Fix SQL case, if so requested sub _sqlcase { # LDNOTE: if $self->{case} is true, then it contains 'lower', so we