Do not generate created timestamp

This commit is contained in:
Lukas Martinelli 2017-01-05 16:21:13 +01:00
parent 12411ee886
commit 56aacb0149

View file

@ -19,12 +19,6 @@ function ensureHasId(style) {
return style
}
function ensureHasTimestamp(style) {
if('created' in style) return style
style.created = new Date().toJSON()
return style
}
function ensureHasNoRefs(style) {
const derefedStyle = {
...style,
@ -34,7 +28,7 @@ function ensureHasNoRefs(style) {
}
function ensureStyleValidity(style) {
return ensureHasNoRefs(ensureHasId(ensureHasTimestamp(style)))
return ensureHasNoRefs(ensureHasId(style))
}
function indexOfLayer(layers, layerId) {