diff --git a/src/components/appRouter.js b/src/components/appRouter.js index 1f84d0bb2d..4b915eb1d7 100644 --- a/src/components/appRouter.js +++ b/src/components/appRouter.js @@ -103,19 +103,6 @@ class AppRouter { return this.promiseShow; } - // TODO: Unused? - async showDirect(path) { - if (this.promiseShow) await this.promiseShow; - - this.promiseShow = new Promise((resolve) => { - this.resolveOnNextShow = resolve; - // Schedule a call to return the promise - setTimeout(() => history.push(this.baseUrl() + path), 0); - }); - - return this.promiseShow; - } - #goToRoute({ location, action }) { // Strip the leading "!" if present const normalizedPath = location.pathname.replace(/^!/, ''); @@ -182,25 +169,6 @@ class AppRouter { return window.history.length > 1; } - // TODO: Unused? - invokeShortcut(id) { - if (id.indexOf('library-') === 0) { - id = id.replace('library-', ''); - id = id.split('_'); - - this.showItem(id[0], id[1]); - } else if (id.indexOf('item-') === 0) { - id = id.replace('item-', ''); - id = id.split('_'); - this.showItem(id[0], id[1]); - } else { - id = id.split('_'); - this.show(this.getRouteUrl(id[0], { - serverId: id[1] - })); - } - } - showItem(item, serverId, options) { // TODO: Refactor this so it only gets items, not strings. if (typeof (item) === 'string') {