continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r788572 - in /continuum/branches/continuum-1.3.x: 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 04:47:37 GMT
Author: evenisse
Date: Fri Jun 26 04:47:37 2009
New Revision: 788572

URL: http://svn.apache.org/viewvc?rev=788572&view=rev
Log:
Remove unused methods

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

Modified: continuum/branches/continuum-1.3.x/continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.3.x/continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java?rev=788572&r1=788571&r2=788572&view=diff
==============================================================================
--- continuum/branches/continuum-1.3.x/continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java
(original)
+++ continuum/branches/continuum-1.3.x/continuum-api/src/main/java/org/apache/maven/continuum/Continuum.java
Fri Jun 26 04:47:37 2009
@@ -128,11 +128,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;
 
@@ -143,21 +138,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
      *
@@ -532,9 +520,9 @@
 
     void removeSchedule( int scheduleId )
         throws ContinuumException;
-    
+
     void activePurgeSchedule( Schedule schedule );
-    
+
     void activeBuildDefinitionSchedule( Schedule schedule );
 
     // ----------------------------------------------------------------------

Modified: continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?rev=788572&r1=788571&r2=788572&view=diff
==============================================================================
--- continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
(original)
+++ continuum/branches/continuum-1.3.x/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java
Fri Jun 26 04:47:37 2009
@@ -544,12 +544,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
     {
@@ -568,18 +570,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 );
@@ -592,18 +582,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 );
@@ -776,12 +754,6 @@
         }
     }
 
-    public Collection<Project> getAllProjects( int start, int end )
-        throws ContinuumException
-    {
-        return projectDao.getAllProjectsByName();
-    }
-
     public Map<Integer, ProjectGroupSummary> getProjectsSummaryByGroups()
     {
         return projectDao.getProjectsSummary();
@@ -1184,6 +1156,7 @@
         }
     }
 
+    //TODO: Must be done by build definition
     public List<ChangeSet> getChangesSinceLastSuccess( int projectId, int buildResultId
)
         throws ContinuumException
     {
@@ -1256,7 +1229,8 @@
     //
     // ----------------------------------------------------------------------
 
-    public List<Project> getProjectsInBuildOrder()
+    //TODO: Remove this method when it won't be used
+    private List<Project> getProjectsInBuildOrder()
         throws ContinuumException
     {
         return getProjectsInBuildOrder( getProjectsWithDependencies() );
@@ -2940,11 +2914,6 @@
         }
     }
 
-    public List<Project> getAllProjectsWithAllDetails( int start, int end )
-    {
-        return projectDao.getAllProjectsWithAllDetails();
-    }
-
     public Project getProjectWithAllDetails( int projectId )
         throws ContinuumException
     {



Mime
View raw message