Remove unused readFileLocally

This commit is contained in:
Girish Ramakrishnan
2018-06-12 14:33:19 -07:00
parent 0d3ff81d6c
commit 6ecadb2308

View File

@@ -252,22 +252,6 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
return provider === 's3' || provider === 'minio' || provider === 's3-v4-compat' || provider === 'exoscale-sos' || provider === 'digitalocean-spaces';
};
function readFileLocally(obj, file, fileName) {
return function (event) {
$scope.$apply(function () {
obj[file] = null;
obj[fileName] = event.target.files[0].name;
var reader = new FileReader();
reader.onload = function (result) {
if (!result.target || !result.target.result) return console.error('Unable to read local file');
obj[file] = result.target.result;
};
reader.readAsText(event.target.files[0]);
});
};
}
$scope.autoUpdate = {
busy: false,
success: false,