From b8dbac77bc87958c131eb198eb91a98569d3fa20 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Thu, 28 Nov 2013 10:03:07 +0100 Subject: [PATCH] Remove unused ol.style.Stroke.equals --- src/ol/style/strokestyle.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/ol/style/strokestyle.js b/src/ol/style/strokestyle.js index 5eb3b10634..6b135de49e 100644 --- a/src/ol/style/strokestyle.js +++ b/src/ol/style/strokestyle.js @@ -25,28 +25,3 @@ ol.style.Stroke = function(options) { */ this.width = options.width; }; - - -/** - * @param {ol.style.Stroke} strokeStyle1 Stroke style 1. - * @param {ol.style.Stroke} strokeStyle2 Stroke style 2. - * @return {boolean} Equals. - */ -ol.style.Stroke.equals = function(strokeStyle1, strokeStyle2) { - if (!goog.isNull(strokeStyle1)) { - if (!goog.isNull(strokeStyle2)) { - return strokeStyle1 === strokeStyle2 || - (ol.color.stringOrColorEquals(strokeStyle1.color, - strokeStyle2.color) && - strokeStyle1.width == strokeStyle2.width); - } else { - return false; - } - } else { - if (!goog.isNull(strokeStyle2)) { - return false; - } else { - return true; - } - } -};