From c7872544275a36d3e1a3b418f2c392f7911c1a30 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Wed, 27 Jul 2022 16:42:16 +0800 Subject: [PATCH] DEV: Remove code that is no longer used (#17684) --- app/assets/javascripts/discourse/app/routes/application.js | 4 ---- .../discourse/app/templates/components/sidebar.hbs | 2 +- .../app/templates/components/sidebar/hamburger-dropdown.hbs | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/discourse/app/routes/application.js b/app/assets/javascripts/discourse/app/routes/application.js index 558ab27bc11..f26b798225a 100644 --- a/app/assets/javascripts/discourse/app/routes/application.js +++ b/app/assets/javascripts/discourse/app/routes/application.js @@ -51,10 +51,6 @@ const ApplicationRoute = DiscourseRoute.extend(OpenComposer, { mobile.toggleMobileView(); }, - toggleSidebar() { - this.controllerFor("application").send("toggleSidebar"); - }, - logout: unlessReadOnly( "_handleLogout", I18n.t("read_only_mode.logout_disabled") diff --git a/app/assets/javascripts/discourse/app/templates/components/sidebar.hbs b/app/assets/javascripts/discourse/app/templates/components/sidebar.hbs index 1a082baaf82..31cda7a3058 100644 --- a/app/assets/javascripts/discourse/app/templates/components/sidebar.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/sidebar.hbs @@ -1,6 +1,6 @@ diff --git a/app/assets/javascripts/discourse/app/templates/components/sidebar/hamburger-dropdown.hbs b/app/assets/javascripts/discourse/app/templates/components/sidebar/hamburger-dropdown.hbs index 7a55b9013f3..3167355bc97 100644 --- a/app/assets/javascripts/discourse/app/templates/components/sidebar/hamburger-dropdown.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/sidebar/hamburger-dropdown.hbs @@ -4,7 +4,7 @@