[core] Eliminate setProperty & co.

This commit is contained in:
John Firebaugh
2018-07-30 08:38:14 -07:00
parent 3c8acb228e
commit b2f60a4bf2
35 changed files with 2374 additions and 401 deletions

View File

@@ -192,9 +192,6 @@ for (const layer of layers) {
writeIfModified(`src/mbgl/style/layers/${layerFileName}_layer_properties.cpp`, propertiesCpp(layer));
}
const propertySettersHpp = ejs.compile(fs.readFileSync('src/mbgl/style/conversion/make_property_setters.hpp.ejs', 'utf8'), {strict: true});
writeIfModified('src/mbgl/style/conversion/make_property_setters.hpp', propertySettersHpp({layers: layers}));
// Light
const lightProperties = Object.keys(spec[`light`]).reduce((memo, name) => {
var property = spec[`light`][name];