From fba22efbb9cf92145f6bd66305049389acbc6ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Mon, 10 Jul 2023 15:36:14 +0300 Subject: [PATCH] Remove unused methods --- layouts/default.vue | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/layouts/default.vue b/layouts/default.vue index 2640f22aa..2ee355ba8 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -75,20 +75,6 @@ export default { sessionStorage.setItem('primevue-news-hidden', 'true'); event.stopPropagation(); }, - addClass(element, className) { - if (!this.hasClass(element, className)) { - if (element.classList) element.classList.add(className); - else element.className += ' ' + className; - } - }, - removeClass(element, className) { - if (element.classList) element.classList.remove(className); - else element.className = element.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' '); - }, - hasClass(element, className) { - if (element.classList) return element.classList.contains(className); - else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className); - }, isOutdatedIE() { let ua = window.navigator.userAgent;