[REM] web_editor: remove unused method _isSelectionOnlyZws

The forementioned method is not called anywhere in the code.

closes odoo/odoo#111131

Related: odoo/enterprise#36356
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
Rodopho Cammarosano de Lima (rcdl)
2023-02-03 18:43:45 +01:00
parent 82dfb82b21
commit 841d9eaf40
@@ -3645,21 +3645,6 @@ export class OdooEditor extends EventTarget {
}
}
/**
* Returns true if the current selection content is only one ZWS
*
* @private
* @param {Object} selection
* @returns {boolean}
*/
_isSelectionOnlyZws(selection) {
let range = selection.getRangeAt(0);
if (selection.isCollapsed || !range) {
return false;
}
return range.cloneContents().textContent === '\u200B';
}
getCurrentCollaborativeSelection() {
const selection = this._latestComputedSelection || this._computeHistorySelection();
if (!selection) return;