Remove unused ol.style.Stroke.equals
This commit is contained in:
@@ -25,28 +25,3 @@ ol.style.Stroke = function(options) {
|
|||||||
*/
|
*/
|
||||||
this.width = options.width;
|
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|||||||
Reference in New Issue
Block a user