← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16839: Removed unused method

 

------------------------------------------------------------
revno: 16839
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2014-09-28 21:17:21 +0200
message:
  Removed unused method
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnitService.java
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/organisationunit/DefaultOrganisationUnitService.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnitService.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnitService.java	2014-04-29 09:26:28 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnitService.java	2014-09-28 19:17:21 +0000
@@ -40,7 +40,6 @@
  * Defines methods for working with OrganisationUnits.
  *
  * @author Torgeir Lorange Ostby
- * @version $Id: OrganisationUnitService.java 5951 2008-10-16 17:41:34Z larshelg $
  */
 public interface OrganisationUnitService
 {
@@ -217,15 +216,6 @@
     int getLevelOfOrganisationUnit( int id );
 
     /**
-     * Returns all OrganisationUnits which are part of the subtree of the
-     * OrganisationUnit with the given identifier and have no children.
-     *
-     * @param id the identifier of the parent OrganisationUnit.
-     * @return a collection of OrganisationUnits.
-     */
-    Collection<OrganisationUnit> getLeafOrganisationUnits( int id );
-
-    /**
      * Returns the intersection of the members of the given OrganisationUnitGroups
      * and the OrganisationUnits which are children of the given collection of
      * parents in the hierarchy. If the given parent collection is null or empty, 

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/organisationunit/DefaultOrganisationUnitService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/organisationunit/DefaultOrganisationUnitService.java	2014-09-08 13:02:43 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/organisationunit/DefaultOrganisationUnitService.java	2014-09-28 19:17:21 +0000
@@ -259,19 +259,6 @@
         return getOrganisationUnit( id ).getOrganisationUnitLevel();
     }
 
-    public Collection<OrganisationUnit> getLeafOrganisationUnits( int id )
-    {
-        Collection<OrganisationUnit> units = getOrganisationUnitWithChildren( id );
-
-        return FilterUtils.filter( units, new Filter<OrganisationUnit>()
-        {
-            public boolean retain( OrganisationUnit object )
-            {
-                return object != null && object.getChildren().isEmpty();
-            }
-        } );
-    }
-
     public Collection<OrganisationUnit> getOrganisationUnits( Collection<OrganisationUnitGroup> groups, Collection<OrganisationUnit> parents )
     {
         Set<OrganisationUnit> members = new HashSet<>();