continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r788575 - in /continuum/trunk: continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Date Fri, 26 Jun 2009 05:01:14 GMT
Author: evenisse
Date: Fri Jun 26 05:01:13 2009
New Revision: 788575

URL: http://svn.apache.org/viewvc?rev=788575&view=rev
Log:
Remove unused methods
merge 788571:788572 from continuum-1.3.x branch

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

Modified: continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java?rev=788575&r1=788574&r2=788575&view=diff
==============================================================================
--- continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java
(original)
+++ continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java
Fri Jun 26 05:01:13 2009
@@ -129,11 +129,6 @@
     Project getProjectWithBuildDetails( int projectId )
         throws ContinuumException;
 
-    List<Project> getAllProjectsWithAllDetails( int start, int end );
-
-    Collection<Project> getAllProjects( int start, int end )
-        throws ContinuumException;
-
     Collection<Project> getProjects()
         throws ContinuumException;
 
@@ -144,21 +139,14 @@
 
     Map<Integer, BuildResult> getLatestBuildResults( int projectGroupId );
 
-    Map<Integer, BuildResult> getLatestBuildResults();
-
     Map<Integer, BuildResult> getBuildResultsInSuccess( int projectGroupId );
 
-    Map<Integer, BuildResult> getBuildResultsInSuccess();
-
     Map<Integer, ProjectGroupSummary> getProjectsSummaryByGroups();
 
     // ----------------------------------------------------------------------
     // Building
     // ----------------------------------------------------------------------
 
-    List<Project> getProjectsInBuildOrder()
-        throws ContinuumException;
-
     /**
      * take a collection of projects and sort for order
      *
@@ -533,9 +521,9 @@
 
     void removeSchedule( int scheduleId )
         throws ContinuumException;
-    
+
     void activePurgeSchedule( Schedule schedule );
-    
+
     void activeBuildDefinitionSchedule( Schedule schedule );
 
     // ----------------------------------------------------------------------

Modified: continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?rev=788575&r1=788574&r2=788575&view=diff
==============================================================================
--- continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
(original)
+++ continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Fri Jun 26 05:01:13 2009
@@ -545,12 +545,14 @@
     // Projects
     // ----------------------------------------------------------------------
 
+    // TODO: Remove this method
     public Collection<Project> getProjects()
         throws ContinuumException
     {
         return projectDao.getAllProjectsByName();
     }
 
+    // TODO: Remove this method
     public Collection<Project> getProjectsWithDependencies()
         throws ContinuumException
     {
@@ -569,18 +571,6 @@
         return result;
     }
 
-    public Map<Integer, BuildResult> getLatestBuildResults()
-    {
-        Map<Integer, BuildResult> result = buildResultDao.getLatestBuildResults();
-
-        if ( result == null )
-        {
-            result = new HashMap<Integer, BuildResult>();
-        }
-
-        return result;
-    }
-
     public Map<Integer, BuildResult> getBuildResultsInSuccess( int projectGroupId )
     {
         Map<Integer, BuildResult> result = buildResultDao.getBuildResultsInSuccessByProjectGroupId(
projectGroupId );
@@ -593,18 +583,6 @@
         return result;
     }
 
-    public Map<Integer, BuildResult> getBuildResultsInSuccess()
-    {
-        Map<Integer, BuildResult> result = buildResultDao.getBuildResultsInSuccess();
-
-        if ( result == null )
-        {
-            result = new HashMap<Integer, BuildResult>();
-        }
-
-        return result;
-    }
-
     public BuildResult getLatestBuildResultForProject( int projectId )
     {
         return buildResultDao.getLatestBuildResultForProject( projectId );
@@ -777,12 +755,6 @@
         }
     }
 
-    public Collection<Project> getAllProjects( int start, int end )
-        throws ContinuumException
-    {
-        return projectDao.getAllProjectsByName();
-    }
-
     public Map<Integer, ProjectGroupSummary> getProjectsSummaryByGroups()
     {
         return projectDao.getProjectsSummary();
@@ -1192,6 +1164,7 @@
         }
     }
 
+    //TODO: Must be done by build definition
     public List<ChangeSet> getChangesSinceLastSuccess( int projectId, int buildResultId
)
         throws ContinuumException
     {
@@ -1264,7 +1237,8 @@
     //
     // ----------------------------------------------------------------------
 
-    public List<Project> getProjectsInBuildOrder()
+    //TODO: Remove this method when it won't be used
+    private List<Project> getProjectsInBuildOrder()
         throws ContinuumException
     {
         return getProjectsInBuildOrder( getProjectsWithDependencies() );
@@ -2948,11 +2922,6 @@
         }
     }
 
-    public List<Project> getAllProjectsWithAllDetails( int start, int end )
-    {
-        return projectDao.getAllProjectsWithAllDetails();
-    }
-
     public Project getProjectWithAllDetails( int projectId )
         throws ContinuumException
     {



Mime
View raw message