=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/services.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/services.js 2015-03-06 15:15:45 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/services.js 2015-03-06 16:14:10 +0000 @@ -612,34 +612,7 @@ } } return def.promise; - }, - reconstructForWebApi: function(attributes, attributesById, optionSets){ - var registrationAttributes = []; - var formEmpty = true; - angular.forEach(attributes, function(att){ - var val = AttributesFactory.formatAttributeValue(att, attributesById, optionSets, 'API'); - registrationAttributes.push({attribute: att.id, value: val}); - if(val){ - formEmpty = false; - } - }); - return {attributes: registrationAttributes, formEmpty: formEmpty}; - }, - reconstructForUser: function(tei, attributes, attributesById, optionSets){ - var registrationAttributes = []; - var formEmpty = true; - angular.forEach(attributes, function(att){ - var _att = att; - _att.value = tei[att.id]; - - var val = AttributesFactory.formatAttributeValue(_att, attributesById, optionSets, 'USER'); - registrationAttributes.push({attribute: att.id, value: val}); - if(val){ - formEmpty = false; - } - }); - return {attributes: registrationAttributes, formEmpty: formEmpty}; - } + } }; })