From: Matt S Trout Date: Sun, 31 Jul 2011 20:29:51 +0000 (+0000) Subject: delete vestigial _join_sql_clauses method X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=14cce8e64b659882c5969d1c76e033387c03788c;p=dbsrgits%2FSQL-Abstract.git delete vestigial _join_sql_clauses method --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 51b733b..632b15c 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -851,23 +851,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