Skip to content

Commit

Permalink
removed unneeded buildOrdinals function
Browse files Browse the repository at this point in the history
  • Loading branch information
matortheeternal committed Oct 16, 2019
1 parent 263a80a commit 0aacff3
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/javascripts/Services/merge/mergeMasterService.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,16 @@ ngapp.service('mergeMasterService', function(progressLogger) {
});
};

let buildOrdinals = function(merge) {
let masterNames = xelib.GetMasterNames(merge.plugin);
merge.ordinals = masterNames.reduce((ordinals, filename, index) => {
ordinals[filename] = index;
return ordinals;
}, {});
merge.ordinals[merge.filename] = Object.keys(merge.ordinals).length;
};

let addMastersToMergedPlugin = function(merge) {
xelib.AddAllMasters(merge.plugin);
log(`Added masters to merged plugin`);
buildOrdinals(merge);
};

let addMastersToPlugins = function(merge) {
merge.plugins.forEach(plugin => {
xelib.AddMaster(plugin.handle, merge.filename);
});
log(`Added ${merge.filename} as a master to the plugins being merged`);
buildOrdinals(merge);
};

let addMastersMethods = {
Expand Down

0 comments on commit 0aacff3

Please sign in to comment.