From 56aacb01498dd81b313903b549aa7487765c7706 Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Thu, 5 Jan 2017 16:21:13 +0100 Subject: [PATCH] Do not generate created timestamp --- src/libs/style.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/libs/style.js b/src/libs/style.js index 0cf7618..5e2404f 100644 --- a/src/libs/style.js +++ b/src/libs/style.js @@ -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) {