← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6880: Relative periods, unused code

 

------------------------------------------------------------
revno: 6880
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2012-05-08 18:00:25 +0200
message:
  Relative periods, unused code
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/period/RelativePeriods.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/period/RelativePeriods.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/period/RelativePeriods.java	2012-05-08 15:55:59 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/period/RelativePeriods.java	2012-05-08 16:00:25 +0000
@@ -598,36 +598,6 @@
         return cal.getTime();
     }
 
-    /**
-     * Creates an instance of RelativePeriods based on given set of PeriodType
-     * names.
-     *
-     * @return a RelativePeriods instance.
-     */
-    /*
-    public RelativePeriods getRelativePeriods( Set<String> periodTypes )
-    {
-        RelativePeriods relatives = new RelativePeriods();
-
-        if ( periodTypes == null || periodTypes.isEmpty() )
-        {
-            relatives.setLast12Months( true );
-            relatives.setLast4Quarters( true );
-            relatives.setThisYear( true );
-        }
-        else
-        {
-            relatives.setLast12Months( periodTypes.contains( MonthlyPeriodType.NAME ) );
-            relatives.setLast6BiMonths( periodTypes.contains( BiMonthlyPeriodType.NAME ) );
-            relatives.setLast4Quarters( periodTypes.contains( QuarterlyPeriodType.NAME ) );
-            relatives.setLast2SixMonths( periodTypes.contains( SixMonthlyPeriodType.NAME ) );
-            relatives.setThisYear( periodTypes.contains( YearlyPeriodType.NAME ) );
-            relatives.setThisFinancialYear( periodTypes.contains( FinancialJulyPeriodType.NAME ) );
-        }
-
-        return relatives;
-    }*/
-
     // -------------------------------------------------------------------------
     // Getters & setters
     // -------------------------------------------------------------------------