From 2e9e5573606340092bad9e42a70daa2087522074 Mon Sep 17 00:00:00 2001 From: Daniel Waterworth Date: Fri, 22 Nov 2019 11:16:44 +0000 Subject: [PATCH] DEV: Remove dead code Given that this is a route, the 'model' attribute is the hook rather than an object. --- .../javascripts/discourse/routes/discovery-categories.js.es6 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/routes/discovery-categories.js.es6 b/app/assets/javascripts/discourse/routes/discovery-categories.js.es6 index f5bafdf12b3..35b124aa5bf 100644 --- a/app/assets/javascripts/discourse/routes/discovery-categories.js.es6 +++ b/app/assets/javascripts/discourse/routes/discovery-categories.js.es6 @@ -21,10 +21,7 @@ const DiscoveryCategoriesRoute = DiscourseRoute.extend(OpenComposer, { let style = !this.site.mobileView && this.siteSettings.desktop_category_page_style; - let parentCategory = this.get("model.parentCategory"); - if (parentCategory) { - return CategoryList.listForParent(this.store, parentCategory); - } else if (style === "categories_and_latest_topics") { + if (style === "categories_and_latest_topics") { return this._findCategoriesAndTopics("latest"); } else if (style === "categories_and_top_topics") { return this._findCategoriesAndTopics("top");