roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r513727 - /incubator/roller/branches/roller_4.0/src/org/apache/roller/business/jpa/JPAUserManagerImpl.java
Date Fri, 02 Mar 2007 12:19:24 GMT
Author: snoopdave
Date: Fri Mar  2 04:19:23 2007
New Revision: 513727

URL: http://svn.apache.org/viewvc?view=rev&rev=513727
Log:
- Remove unnecessary legnth logic in getUsersStartingWith()

Modified:
    incubator/roller/branches/roller_4.0/src/org/apache/roller/business/jpa/JPAUserManagerImpl.java

Modified: incubator/roller/branches/roller_4.0/src/org/apache/roller/business/jpa/JPAUserManagerImpl.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_4.0/src/org/apache/roller/business/jpa/JPAUserManagerImpl.java?view=diff&rev=513727&r1=513726&r2=513727
==============================================================================
--- incubator/roller/branches/roller_4.0/src/org/apache/roller/business/jpa/JPAUserManagerImpl.java
(original)
+++ incubator/roller/branches/roller_4.0/src/org/apache/roller/business/jpa/JPAUserManagerImpl.java
Fri Mar  2 04:19:23 2007
@@ -791,12 +791,6 @@
     public List getUsersStartingWith(String startsWith, Boolean enabled,
             int offset, int length) throws RollerException {
         Query query = null;
-        List results = null;
-        boolean setRange = offset != 0 || length != -1;
-        
-        if (length == -1) {
-            length = Integer.MAX_VALUE - offset;
-        }
         
         if (enabled != null) {
             if (startsWith != null) {



Mime
View raw message