dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #17342
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6860: Removed method on RelativePeriods
------------------------------------------------------------
revno: 6860
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-05-04 14:57:46 +0200
message:
Removed method on RelativePeriods
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/period/RelativePeriods.java
dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/scheduling/DataMartTask.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-04 12:28:46 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/period/RelativePeriods.java 2012-05-04 12:57:46 +0000
@@ -327,16 +327,6 @@
}
/**
- * Gets a list of Periods relative to current date.
- *
- * @param months the number of months to subtract from the current date.
- */
- public List<Period> getRelativePeriods( int months )
- {
- return getRelativePeriods( getDate( months, new Date() ), null, false );
- }
-
- /**
* Gets a list of Periods based on the given input and the state of this
* RelativePeriods. The current date is set to todays date minus one month.
*
=== modified file 'dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/scheduling/DataMartTask.java'
--- dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/scheduling/DataMartTask.java 2013-01-01 01:19:11 +0000
+++ dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/scheduling/DataMartTask.java 2012-05-04 12:57:46 +0000
@@ -186,11 +186,11 @@
return periods;
}
- List<Period> relativePeriods = new RelativePeriods().getRelativePeriods( periodTypes ).getRelativePeriods( 1 );
+ List<Period> relativePeriods = new RelativePeriods().getRelativePeriods( periodTypes ).getRelativePeriods();
if ( periodTypes.contains( YearlyPeriodType.NAME ) ) // Add last year
{
- relativePeriods.addAll( new RelativePeriods().setLastYear( true ).getRelativePeriods( 1 ) );
+ relativePeriods.addAll( new RelativePeriods().setLastYear( true ).getRelativePeriods() );
}
final Date date = new Cal().now().subtract( Calendar.MONTH, 7 ).time();