continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r209187 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Date Tue, 05 Jul 2005 02:40:00 GMT
Author: jvanzyl
Date: Mon Jul  4 19:39:59 2005
New Revision: 209187

URL: http://svn.apache.org/viewcvs?rev=209187&view=rev
Log:
o doing tallies in the template while iterating through the projects

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?rev=209187&r1=209186&r2=209187&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Mon Jul  4 19:39:59 2005
@@ -73,63 +73,6 @@
         return core.getProjects();
     }
 
-    // TODO: i realize these are horribly inefficient and I will correct using JDO
-    // properly after the alpha-2 release.
-
-    public Collection getProjectsWithFailures()
-        throws ContinuumException
-    {
-        List list = new ArrayList();
-
-        for ( Iterator i = core.getProjects().iterator(); i.hasNext(); )
-        {
-            ContinuumProject p = (ContinuumProject) i.next();
-
-            if ( p.getState() == ContinuumProjectState.FAILED )
-            {
-                list.add( p );
-            }
-        }
-
-        return list;
-    }
-
-    public Collection getProjectsWithErrors()
-        throws ContinuumException
-    {
-        List list = new ArrayList();
-
-        for ( Iterator i = core.getProjects().iterator(); i.hasNext(); )
-        {
-            ContinuumProject p = (ContinuumProject) i.next();
-
-            if ( p.getState() == ContinuumProjectState.ERROR )
-            {
-                list.add( p );
-            }
-        }
-
-        return list;
-    }
-
-    public Collection getProjectsWithSuccess()
-        throws ContinuumException
-    {
-        List list = new ArrayList();
-
-        for ( Iterator i = core.getProjects().iterator(); i.hasNext(); )
-        {
-            ContinuumProject p = (ContinuumProject) i.next();
-
-            if ( p.getState() == ContinuumProjectState.OK )
-            {
-                list.add( p );
-            }
-        }
-
-        return list;
-    }
-
     public ContinuumBuild getLatestBuildForProject( String id )
         throws ContinuumException
     {



Mime
View raw message