REFACTOR: Remove an unused Topic model observer (#9723)

As far I can tell nothing sets categoryName on the Topic model. Didn't find anything in all-the-plugins/all-the-themes either.
This commit is contained in:
Jarek Radosz 2020-05-11 17:05:05 +02:00 committed by GitHub
parent b7d6eb3986
commit a2bb33b6d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions

View File

@ -236,16 +236,6 @@ const Topic = RestModel.extend({
this.set("category", Category.findById(this.category_id));
},
@observes("categoryName")
_categoryNameChanged() {
const categoryName = this.categoryName;
let category;
if (categoryName) {
category = this.site.get("categories").findBy("name", categoryName);
}
this.set("category", category);
},
categoryClass: fmt("category.fullSlug", "category-%@"),
@discourseComputed("tags")