dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #33320
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17003: Validation rule action, unused code
------------------------------------------------------------
revno: 17003
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2014-10-08 13:00:48 +0200
message:
Validation rule action, unused code
modified:
dhis-2/dhis-web/dhis-web-validationrule/src/main/java/org/hisp/dhis/validationrule/action/RunValidationAction.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-web/dhis-web-validationrule/src/main/java/org/hisp/dhis/validationrule/action/RunValidationAction.java'
--- dhis-2/dhis-web/dhis-web-validationrule/src/main/java/org/hisp/dhis/validationrule/action/RunValidationAction.java 2014-08-15 07:40:20 +0000
+++ dhis-2/dhis-web/dhis-web-validationrule/src/main/java/org/hisp/dhis/validationrule/action/RunValidationAction.java 2014-10-08 11:00:48 +0000
@@ -28,10 +28,13 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-import com.opensymphony.xwork2.Action;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.hisp.dhis.common.Grid;
import org.hisp.dhis.dataelement.DataElementCategoryOptionCombo;
import org.hisp.dhis.dataelement.DataElementCategoryService;
import org.hisp.dhis.i18n.I18nFormat;
@@ -43,10 +46,7 @@
import org.hisp.dhis.validation.ValidationRuleService;
import org.hisp.dhis.validation.comparator.ValidationResultComparator;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.List;
+import com.opensymphony.xwork2.Action;
/**
* @author Margrethe Store
@@ -155,13 +155,6 @@
return validationResults;
}
- private Grid aggregateResults;
-
- public Grid getAggregateResults()
- {
- return aggregateResults;
- }
-
private boolean maxExceeded;
public boolean isMaxExceeded()
@@ -215,6 +208,10 @@
return SUCCESS;
}
+ // -------------------------------------------------------------------------
+ // Supportive methods
+ // -------------------------------------------------------------------------
+
private void computeShowAttributeCombos()
{
showAttributeCombos = false;
@@ -224,7 +221,6 @@
if ( !result.getAttributeOptionCombo().isDefault() )
{
showAttributeCombos = true;
-
break;
}
}