From dc2f5112022b5f987ed418e04b5e15c93dc7a731 Mon Sep 17 00:00:00 2001 From: Jorge Pinna Puissant Date: Tue, 1 Mar 2022 08:18:41 +0000 Subject: [PATCH] [IMP] theme_*: enable no-unused-vars rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes odoo/design-themes#552 Related: odoo/enterprise#24867 Related: odoo/odoo#85569 Signed-off-by: Géry Debongnie --- theme_artists/static/src/js/tour.js | 3 --- theme_aviato/static/src/js/tour.js | 4 +--- theme_bewise/static/src/js/tour.js | 4 +--- theme_bookstore/static/src/js/tour.js | 4 +--- theme_clean/static/src/js/tour.js | 4 +--- theme_enark/static/src/js/tour.js | 3 --- theme_graphene/static/src/js/tour.js | 4 ---- theme_kiddo/static/src/js/tour.js | 4 +--- theme_notes/static/src/js/tour.js | 4 +--- theme_odoo_experts/static/src/js/tour.js | 4 +--- theme_orchid/static/src/js/tour.js | 4 +--- theme_real_estate/static/src/js/tour.js | 1 - theme_vehicle/static/src/js/tour.js | 4 ---- 13 files changed, 8 insertions(+), 39 deletions(-) diff --git a/theme_artists/static/src/js/tour.js b/theme_artists/static/src/js/tour.js index 23120c638..f2190f72b 100644 --- a/theme_artists/static/src/js/tour.js +++ b/theme_artists/static/src/js/tour.js @@ -2,9 +2,6 @@ import wTourUtils from 'website.tour_utils'; -const core = require("web.core"); -const _t = core._t; - const snippets = [ { id: 's_carousel_wrapper', diff --git a/theme_aviato/static/src/js/tour.js b/theme_aviato/static/src/js/tour.js index 03fb523be..b94f53085 100644 --- a/theme_aviato/static/src/js/tour.js +++ b/theme_aviato/static/src/js/tour.js @@ -1,9 +1,7 @@ /** @odoo-module */ import wTourUtils from 'website.tour_utils'; - -const core = require("web.core"); -const _t = core._t; +import { _t } from 'web.core'; const snippets = [ { diff --git a/theme_bewise/static/src/js/tour.js b/theme_bewise/static/src/js/tour.js index b15454dbf..16e634e40 100644 --- a/theme_bewise/static/src/js/tour.js +++ b/theme_bewise/static/src/js/tour.js @@ -1,8 +1,6 @@ /** @odoo-module */ import wTourUtils from 'website.tour_utils'; - -const core = require("web.core"); -const _t = core._t; +import { _t } from 'web.core'; const snippets = [ { diff --git a/theme_bookstore/static/src/js/tour.js b/theme_bookstore/static/src/js/tour.js index 3558cb966..50f78ff38 100644 --- a/theme_bookstore/static/src/js/tour.js +++ b/theme_bookstore/static/src/js/tour.js @@ -1,9 +1,7 @@ /** @odoo-module */ import wTourUtils from 'website.tour_utils'; - -const core = require("web.core"); -const _t = core._t; +import { _t } from 'web.core'; const snippets = [ { diff --git a/theme_clean/static/src/js/tour.js b/theme_clean/static/src/js/tour.js index d1790744d..4fe49f083 100644 --- a/theme_clean/static/src/js/tour.js +++ b/theme_clean/static/src/js/tour.js @@ -1,9 +1,7 @@ /** @odoo-module */ import wTourUtils from 'website.tour_utils'; - -const core = require("web.core"); -const _t = core._t; +import { _t } from 'web.core'; const snippets = [ { diff --git a/theme_enark/static/src/js/tour.js b/theme_enark/static/src/js/tour.js index a5fdc1924..168efdd7f 100644 --- a/theme_enark/static/src/js/tour.js +++ b/theme_enark/static/src/js/tour.js @@ -1,10 +1,7 @@ odoo.define("theme_enark.tour.enark", function (require) { "use strict"; -const core = require("web.core"); -const _t = core._t; const wTourUtils = require("website.tour_utils"); -var tour = require("web_tour.tour"); const snippets = [ { diff --git a/theme_graphene/static/src/js/tour.js b/theme_graphene/static/src/js/tour.js index 89e9869af..073abcc16 100644 --- a/theme_graphene/static/src/js/tour.js +++ b/theme_graphene/static/src/js/tour.js @@ -1,11 +1,7 @@ odoo.define("theme_graphene.tour.graphene", function (require) { "use strict"; -const core = require("web.core"); -const _t = core._t; - const wTourUtils = require("website.tour_utils"); -var tour = require("web_tour.tour"); const snippets = [ { diff --git a/theme_kiddo/static/src/js/tour.js b/theme_kiddo/static/src/js/tour.js index b34d48e01..d502cc1d6 100644 --- a/theme_kiddo/static/src/js/tour.js +++ b/theme_kiddo/static/src/js/tour.js @@ -1,8 +1,6 @@ /** @odoo-module */ import wTourUtils from 'website.tour_utils'; - -const core = require("web.core"); -const _t = core._t; +import { _t } from 'web.core'; const snippets = [ { diff --git a/theme_notes/static/src/js/tour.js b/theme_notes/static/src/js/tour.js index 4ba579657..64c06bbfb 100644 --- a/theme_notes/static/src/js/tour.js +++ b/theme_notes/static/src/js/tour.js @@ -1,9 +1,7 @@ /** @odoo-module */ import wTourUtils from 'website.tour_utils'; - -const core = require("web.core"); -const _t = core._t; +import { _t } from 'web.core'; const snippets = [ { diff --git a/theme_odoo_experts/static/src/js/tour.js b/theme_odoo_experts/static/src/js/tour.js index d4d6f4ef4..afe56520e 100644 --- a/theme_odoo_experts/static/src/js/tour.js +++ b/theme_odoo_experts/static/src/js/tour.js @@ -1,9 +1,7 @@ /** @odoo-module */ import wTourUtils from 'website.tour_utils'; - -const core = require("web.core"); -const _t = core._t; +import { _t } from 'web.core'; const snippets = [ { diff --git a/theme_orchid/static/src/js/tour.js b/theme_orchid/static/src/js/tour.js index d951ce520..485ac8569 100644 --- a/theme_orchid/static/src/js/tour.js +++ b/theme_orchid/static/src/js/tour.js @@ -1,9 +1,7 @@ /** @odoo-module */ import wTourUtils from 'website.tour_utils'; - -const core = require("web.core"); -const _t = core._t; +import { _t } from 'web.core'; const snippets = [ { diff --git a/theme_real_estate/static/src/js/tour.js b/theme_real_estate/static/src/js/tour.js index b08a8ad8f..491d1c6e7 100644 --- a/theme_real_estate/static/src/js/tour.js +++ b/theme_real_estate/static/src/js/tour.js @@ -2,7 +2,6 @@ odoo.define("theme_real_estate.tour.real_estate", function (require) { "use strict"; const wTourUtils = require("website.tour_utils"); -var tour = require("web_tour.tour"); const snippets = [ { diff --git a/theme_vehicle/static/src/js/tour.js b/theme_vehicle/static/src/js/tour.js index 0bce8c722..869cd05e7 100644 --- a/theme_vehicle/static/src/js/tour.js +++ b/theme_vehicle/static/src/js/tour.js @@ -1,11 +1,7 @@ odoo.define("theme_vehicle.tour.vehicle", function (require) { "use strict"; -const core = require("web.core"); -const _t = core._t; - const wTourUtils = require("website.tour_utils"); -var tour = require("web_tour.tour"); const snippets = [ {