refactor: remove unused function

This commit is contained in:
alistair3149 2024-11-16 01:28:35 -05:00 committed by alistair3149
parent 6d3b905200
commit df9897441a

View file

@ -4,18 +4,6 @@
* @class Util
*/
class Util {
/**
* Extracts text content from the given HTML string.
*
* @param {string} html - The HTML string to extract text content from.
* @return {string} The extracted text content.
*/
static extractTextFromHtml( html ) {
const tmp = document.createElement( 'div' );
tmp.innerHTML = html;
return tmp.textContent;
}
/**
* Returns the size (width or height) of the provided element.
* Required to calculate the size of hidden elements (e.g. nested tabs)