Remove ol.style.Text.equals

This commit is contained in:
Tom Payne
2014-01-23 02:21:39 +01:00
parent 09027316f5
commit 16d98c5506

View File

@@ -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.
*/