← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16579: Remove unsed methods in OptionService class.

 

------------------------------------------------------------
revno: 16579
committer: Tran Chau<tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2014-08-29 22:27:58 +0700
message:
  Remove unsed methods in OptionService class.
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/option/OptionService.java
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/option/DefaultOptionService.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/option/OptionService.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/option/OptionService.java	2014-08-29 15:16:13 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/option/OptionService.java	2014-08-29 15:27:58 +0000
@@ -77,11 +77,7 @@
     Option getOption( int id );
     
     Option getOptionByCode( String code );
-    
-    Option getOptionValueByName( OptionSet optionSet, String name );
-    
-    Collection<Option> getOptionValues( OptionSet optionSet, String option, Integer min, Integer max );
-    
+        
     void deleteOption( Option option  );
     
     Option getOptionByName( OptionSet optionSet, String name );

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/option/DefaultOptionService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/option/DefaultOptionService.java	2014-08-29 15:16:13 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/option/DefaultOptionService.java	2014-08-29 15:27:58 +0000
@@ -199,6 +199,7 @@
     
     public void deleteOption( Option option  )
     {
-        optionValueStore.delete( option );
+        optionStore.delete( option );
     }
+    
 }