=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserSettingService.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserSettingService.java 2015-10-14 07:45:12 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserSettingService.java 2015-10-14 07:46:53 +0000 @@ -30,7 +30,6 @@ import java.io.Serializable; import java.util.List; -import java.util.Map; /** * The main interface for working with user settings. Implementation need to get @@ -167,16 +166,6 @@ List getUserSettings( String name ); /** - * Returns a Map with an entry for all UserSettings with the given name where - * the key is the user and the value is the value of the user setting. - * - * @param name the name of the UserSetting. - * @param defaultValue the value to return if the UserSetting value is null. - * @return a Map. - */ - Map getUserSettings( String name, Serializable defaultValue ); - - /** * Returns the value of the user setting specified by the given name. * * @param name the name of the user setting. === modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/user/DefaultUserSettingService.java' --- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/user/DefaultUserSettingService.java 2015-10-14 07:45:12 +0000 +++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/user/DefaultUserSettingService.java 2015-10-14 07:46:53 +0000 @@ -30,15 +30,12 @@ import java.io.Serializable; import java.util.ArrayList; -import java.util.HashMap; import java.util.List; -import java.util.Map; import org.springframework.transaction.annotation.Transactional; /** * @author Torgeir Lorange Ostby - * @version $Id: DefaultUserSettingService.java 5724 2008-09-18 14:37:01Z larshelg $ */ @Transactional public class DefaultUserSettingService @@ -229,19 +226,6 @@ } @Override - public Map getUserSettings( String name, Serializable defaultValue ) - { - Map map = new HashMap<>(); - - for ( UserSetting setting : userSettingStore.getUserSettings( name ) ) - { - map.put( setting.getUser(), setting.getValue() != null ? setting.getValue() : defaultValue ); - } - - return map; - } - - @Override public List getAllUserSettings() { User currentUser = currentUserService.getCurrentUser();