From 47056f60125217d7db72a42235904d271cd265e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Wed, 8 Jan 2014 10:27:20 +0100 Subject: [PATCH] Remove useless code --- src/ol/format/kmlformat.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ol/format/kmlformat.js b/src/ol/format/kmlformat.js index 65926e5361..a9cb6483d3 100644 --- a/src/ol/format/kmlformat.js +++ b/src/ol/format/kmlformat.js @@ -427,11 +427,9 @@ ol.format.KML.readVec2_ = function(node) { var yunits = node.getAttribute('yunits'); return { x: parseFloat(node.getAttribute('x')), - xunits: goog.isNull(xunits) ? - undefined : ol.format.KML.ICON_ANCHOR_UNITS_MAP_[xunits], + xunits: ol.format.KML.ICON_ANCHOR_UNITS_MAP_[xunits], y: parseFloat(node.getAttribute('y')), - yunits: goog.isNull(yunits) ? - undefined : ol.format.KML.ICON_ANCHOR_UNITS_MAP_[yunits] + yunits: ol.format.KML.ICON_ANCHOR_UNITS_MAP_[yunits] }; };