DEV: Remove `setupTopicController` event

This commit is contained in:
Robin Ward 2020-04-21 13:48:04 -04:00
parent ffa0a18841
commit 63811707e8
1 changed files with 0 additions and 9 deletions

View File

@ -4,8 +4,6 @@ import { cancel, later, schedule } from "@ember/runloop";
import DiscourseRoute from "discourse/routes/discourse";
import DiscourseURL from "discourse/lib/url";
import { ID_CONSTRAINT } from "discourse/models/topic";
import Evented from "@ember/object/evented";
import EmberObject from "@ember/object";
const SCROLL_DELAY = 500;
@ -313,8 +311,6 @@ const TopicRoute = DiscourseRoute.extend({
firstPostExpanded: false
});
TopicRoute.trigger("setupTopicController", this);
this.searchService.set("searchContext", model.get("searchContext"));
// close the multi select when switching topics
@ -333,9 +329,4 @@ const TopicRoute = DiscourseRoute.extend({
}
});
// TODO: Remove this - it's barely used.
const events = EmberObject.extend(Evented).create();
TopicRoute.on = events.on;
TopicRoute.trigger = events.trigger;
export default TopicRoute;