Tim van der Lippe | 652ccb7 | 2021-05-27 17:07:12 +0100 | [diff] [blame^] | 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; |