From 4d4725f05d940c9027b1f8ac61e599557ca27b44 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 21 Apr 2022 13:57:01 -0400 Subject: [PATCH] Fix code smells --- src/components/appRouter.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/components/appRouter.js b/src/components/appRouter.js index 4b915eb1d7..1ed134c90f 100644 --- a/src/components/appRouter.js +++ b/src/components/appRouter.js @@ -24,7 +24,6 @@ class AppRouter { currentViewLoadRequest; firstConnectionResult; forcedLogoutMsg; - isDummyBackToHome; msgTimeout; promiseShow; resolveOnNextShow; @@ -227,7 +226,7 @@ class AppRouter { } } - #loadContentUrl(ctx, next, route, request) { + #loadContentUrl(ctx, _next, route, request) { let url; if (route.contentPath && typeof (route.contentPath) === 'function') { url = route.contentPath(ctx.querystring); @@ -281,12 +280,6 @@ class AppRouter { } #sendRouteToViewManager(ctx, next, route, controllerFactory) { - // TODO: isDummyBackToHome is never true? - if (this.isDummyBackToHome && route.type === 'home') { - this.isDummyBackToHome = false; - return; - } - this.#cancelCurrentLoadRequest(); const isBackNav = ctx.isBack;