From 5cce39278a28d73b15a78f31ff1e2c1cc43127f2 Mon Sep 17 00:00:00 2001 From: Andrei Prigorshnev Date: Fri, 28 Jan 2022 14:12:58 +0100 Subject: [PATCH] DEV: remove unused function in d-editor (#15680) --- app/assets/javascripts/discourse/app/components/d-editor.js | 1 - 1 file changed, 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/components/d-editor.js b/app/assets/javascripts/discourse/app/components/d-editor.js index 16d3796e42d..64dc6fe91b0 100644 --- a/app/assets/javascripts/discourse/app/components/d-editor.js +++ b/app/assets/javascripts/discourse/app/components/d-editor.js @@ -821,7 +821,6 @@ export default Component.extend(TextareaTextManipulation, { applyList: (head, exampleKey, opts) => this._applyList(selected, head, exampleKey, opts), addText: (text) => this._addText(selected, text), - replaceText: (text) => this._addText({ pre: "", post: "" }, text), getText: () => this.value, toggleDirection: () => this._toggleDirection(), };