Skip to content

Commit

Permalink
chore: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
KamiKillertO committed Jul 30, 2020
1 parent c0664a3 commit c1c71d4
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lib/presets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const presetsValidate = require("./validate");
const presets = {};

const none = (() => {
// let keys = Object.keys(presets.default);
const keys = Object.keys(presetsDefault);
const obj = {};
keys.forEach(key => {
Expand All @@ -18,18 +17,3 @@ presets.accessibility = presetsA11y;
presets.validate = presetsValidate;
presets.default = presetsDefault;
module.exports.presets = presets;

module.exports.flattenOpts = function(optList) {
let options = {};
optList.forEach(function(opt) {
if (typeof opt === "string") {
opt = presets[opt];
}
options = {
...options,
...opt
};
});

return options;
};

0 comments on commit c1c71d4

Please sign in to comment.