Remove more dead code

This commit is contained in:
Adam Wathan 2019-01-14 15:12:00 -05:00
parent 20588c9ea7
commit ca524ef7c2
2 changed files with 0 additions and 153 deletions

View file

@ -1,20 +0,0 @@
import _ from 'lodash'
import postcss from 'postcss'
import wrapWithVariants from '../util/wrapWithVariants'
export default function(modules, moduleOptions, generatorOptions = {}) {
modules.forEach(module => {
if (!_.has(moduleOptions, module.name)) {
throw new Error(`Module \`${module.name}\` is missing from moduleOptions.`)
}
})
return postcss.root({
nodes: _(modules)
.reject(module => moduleOptions[module.name] === false)
.flatMap(module =>
wrapWithVariants(module.generator(generatorOptions), moduleOptions[module.name])
)
.value(),
})
}