diff --git a/src/ol/style/textstyle.js b/src/ol/style/textstyle.js index 8ad1c50469..73cd18f0e5 100644 --- a/src/ol/style/textstyle.js +++ b/src/ol/style/textstyle.js @@ -54,32 +54,6 @@ ol.style.Text = function(opt_options) { }; -/** - * @param {ol.style.Text} textStyle1 Text style 1. - * @param {ol.style.Text} textStyle2 Text style 2. - * @return {boolean} Equals. - */ -ol.style.Text.equals = function(textStyle1, textStyle2) { - if (!goog.isNull(textStyle1)) { - if (!goog.isNull(textStyle2)) { - return textStyle1 === textStyle2 || ( - textStyle1.getFont() == textStyle2.getFont() && - textStyle1.getText() == textStyle2.getText() && - textStyle1.getTextAlign() == textStyle2.getTextAlign() && - textStyle1.getTextBaseline() == textStyle2.getTextBaseline()); - } else { - return false; - } - } else { - if (!goog.isNull(textStyle2)) { - return false; - } else { - return true; - } - } -}; - - /** * @return {string|undefined} Font. */