source:
frontend/node_modules/clean-css/lib/optimizer/remove-unused.js
| Last change on this file was 9af201e, checked in by , 12 days ago | |
|---|---|
|
|
| File size: 244 bytes | |
| Rev | Line | |
|---|---|---|
| [9af201e] | 1 | function removeUnused(properties) { |
| 2 | for (var i = properties.length - 1; i >= 0; i--) { | |
| 3 | var property = properties[i]; | |
| 4 | ||
| 5 | if (property.unused) { | |
| 6 | property.all.splice(property.position, 1); | |
| 7 | } | |
| 8 | } | |
| 9 | } | |
| 10 | ||
| 11 | module.exports = removeUnused; |
Note:
See TracBrowser
for help on using the repository browser.
