[Jifty-commit] r7086 - Jifty-DBI/trunk/lib/Jifty/DBI

Jifty commits jifty-commit at lists.jifty.org
Wed May 20 14:47:09 EDT 2009


Author: sartak
Date: Wed May 20 14:47:08 2009
New Revision: 7086

Modified:
   Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm

Log:
Remove unused _limit_clause, limiting is a method on the handle

Modified: Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm
==============================================================================
--- Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm	(original)
+++ Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm	Wed May 20 14:47:08 2009
@@ -434,24 +434,6 @@
     }
 }
 
-# LIMIT clauses are used for restricting ourselves to subsets of the
-# search.
-sub _limit_clause {
-    my $self = shift;
-    my $limit_clause;
-
-    if ( $self->rows_per_page ) {
-        $limit_clause = " LIMIT ";
-        if ( $self->first_row != 0 ) {
-            $limit_clause .= $self->first_row . ", ";
-        }
-        $limit_clause .= $self->rows_per_page;
-    } else {
-        $limit_clause = "";
-    }
-    return $limit_clause;
-}
-
 =head2 _is_limited
 
 If we've limited down this search, return true. Otherwise, return


More information about the Jifty-commit mailing list