DEV: Remove dead code

DEV: Remove dead code

Given that this is a route, the ‘model’ attribute is the hook rather than an object.

diff --git a/app/assets/javascripts/discourse/routes/discovery-categories.js.es6 b/app/assets/javascripts/discourse/routes/discovery-categories.js.es6
index f5bafdf12b..35b124aa5b 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");

GitHub sha: 2e9e5573