From 997ca70385c54b06d50b2d48c67aa6916f0dbbdb Mon Sep 17 00:00:00 2001 From: Thomas Calvet Date: Mon, 16 Sep 2019 10:00:25 +0200 Subject: [PATCH] [WebProfilerBundle] Clean time.js --- .../Resources/views/Collector/time.js | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.js b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.js index f2134c7cbd92a..6e693a9dc57c7 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.js +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.js @@ -223,7 +223,7 @@ class Legend { this.createCategory = this.createCategory.bind(this); this.categories = []; - this.theme.getDefaultCategories().forEach(this.createCategory) + this.theme.getDefaultCategories().forEach(this.createCategory); } add(category) { @@ -260,23 +260,6 @@ class Legend { return this.categories.find(element => element.value === category) || this.createCategory(category); } - getClassname(category) { - return this.classnames[category] || ''; - } - - getSectionClassname() { - return this.classnames.section; - } - - getDefaultClassname() { - return this.classnames.default; - } - - getStandardClassenames() { - return Array.from(Object.values(this.classnames)) - .filter(className => className !== this.getSectionClassname()); - } - emit(name) { this.element.dispatchEvent(new Event(name)); }