DEV: Remove dead code

Given that this is a route, the 'model' attribute is the hook rather
than an object.
This commit is contained in:
Daniel Waterworth 2019-11-22 11:16:44 +00:00
parent 50182e4e10
commit 2e9e557360
1 changed files with 1 additions and 4 deletions

View File

@ -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");