From fb5e871dff3da8131d717ec3f6edb27527ad0314 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Sun, 28 Nov 2021 12:45:32 +0100 Subject: [PATCH] DEV: Remove unnecessary functions (#15113) --- app/assets/javascripts/discourse/app/lib/eyeline.js | 4 ---- app/assets/javascripts/discourse/app/routes/application.js | 5 ----- 2 files changed, 9 deletions(-) diff --git a/app/assets/javascripts/discourse/app/lib/eyeline.js b/app/assets/javascripts/discourse/app/lib/eyeline.js index 76757e2e207..10d40b11878 100644 --- a/app/assets/javascripts/discourse/app/lib/eyeline.js +++ b/app/assets/javascripts/discourse/app/lib/eyeline.js @@ -19,10 +19,6 @@ configureEyeline(); // Track visible elements on the screen. export default EmberObject.extend(Evented, { - init() { - this._super(...arguments); - }, - update() { if (_skipUpdate) { return; diff --git a/app/assets/javascripts/discourse/app/routes/application.js b/app/assets/javascripts/discourse/app/routes/application.js index 9ffcb3987fa..dbffdf2de99 100644 --- a/app/assets/javascripts/discourse/app/routes/application.js +++ b/app/assets/javascripts/discourse/app/routes/application.js @@ -58,11 +58,6 @@ const ApplicationRoute = DiscourseRoute.extend(OpenComposer, { this.documentTitle.setTitle(tokens.join(" - ")); }, - // We need an empty method here for Ember to fire the action properly on all routes. - willTransition() { - this._super(...arguments); - }, - postWasEnqueued(details) { showModal("post-enqueued", { model: details,