From 06d873666f006b8e4c0f50cd7f03d237703726fb Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Thu, 28 Nov 2013 10:02:30 +0100 Subject: [PATCH] Remove unused ol.style.Fill.equals --- src/ol/style/fillstyle.js | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/ol/style/fillstyle.js b/src/ol/style/fillstyle.js index 38269f5c3a..2d9455a920 100644 --- a/src/ol/style/fillstyle.js +++ b/src/ol/style/fillstyle.js @@ -15,26 +15,3 @@ ol.style.Fill = function(options) { */ this.color = goog.isDef(options.color) ? options.color : null; }; - - -/** - * @param {ol.style.Fill} fillStyle1 Fill style 1. - * @param {ol.style.Fill} fillStyle2 Fill style 2. - * @return {boolean} Equals. - */ -ol.style.Fill.equals = function(fillStyle1, fillStyle2) { - if (!goog.isNull(fillStyle1)) { - if (!goog.isNull(fillStyle2)) { - return fillStyle1 === fillStyle2 || - ol.color.stringOrColorEquals(fillStyle1.color, fillStyle2.color); - } else { - return false; - } - } else { - if (!goog.isNull(fillStyle2)) { - return false; - } else { - return true; - } - } -};