From ede19163b4c37e305c32f68f4b7bfbfd70644409 Mon Sep 17 00:00:00 2001 From: alschmiedt Date: Mon, 7 Dec 2020 10:44:49 -0800 Subject: [PATCH] Remove deprecated functions in comment.js (#4496) --- core/comment.js | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/core/comment.js b/core/comment.js index 59b2ac22c..33c4bd9ec 100644 --- a/core/comment.js +++ b/core/comment.js @@ -359,41 +359,6 @@ Blockly.Comment.prototype.setBubbleSize = function(width, height) { } }; -/** - * Returns this comment's text. - * @return {string} Comment text. - * @deprecated August 2019 Use block.getCommentText() instead. - */ -Blockly.Comment.prototype.getText = function() { - Blockly.utils.deprecation.warn( - 'Comment.prototype.getText', - 'August 2019', - 'December 2020', - 'block.getCommentText'); - return this.model_.text || ''; -}; - -/** - * Set this comment's text. - * - * If you want to receive a comment change event, then this should not be called - * directly. Instead call block.setCommentText(); - * @param {string} text Comment text. - * @deprecated August 2019 Use block.setCommentText() instead. - */ -Blockly.Comment.prototype.setText = function(text) { - Blockly.utils.deprecation.warn( - 'Comment.prototype.setText', - 'August 2019', - 'December 2020', - 'block.setCommentText'); - if (this.model_.text == text) { - return; - } - this.model_.text = text; - this.updateText(); -}; - /** * Update the comment's view to match the model. * @package