[API] Decruft unused script

This commit is contained in:
Victor Woeltjen 2016-09-30 12:45:20 -07:00
parent b5f1f98555
commit 3bd8dd9928

View File

@ -1,21 +0,0 @@
define([], function () {
function Registry() {
this.providers = [];
}
Registry.prototype.get = function (context) {
return this.providers.filter(function (provider) {
return provider.appliesTo(context);
}).map(function (provider) {
return provider.get(context);
}).reduce(function (a, b) {
return Array.isArray(b) ? a.concat(b) : a.concat([b]);
}, []);
};
Registry.prototype.register = function (provider) {
this.providers.push(provider);
};
return Registry;
});