Skip to content

A platform for community discussion. Free, open, simple.

REFACTOR: Remove dead code (property was typo'd, no longer used)

Robin Ward37c6fef5352b
diff --git a/app/assets/javascripts/discourse/app/routes/discourse.js b/app/assets/javascripts/discourse/app/routes/discourse.js
index 6d04c6b04fd..005e45baae7 100644
--- a/app/assets/javascripts/discourse/app/routes/discourse.js
+++ b/app/assets/javascripts/discourse/app/routes/discourse.js
@@ -1,6 +1,5 @@
import { once } from "@ember/runloop";
import Composer from "discourse/models/composer";
-import { getOwner } from "discourse-common/lib/get-owner";
import Route from "@ember/routing/route";
import { seenUser } from "discourse/lib/user-presence";
@@ -11,10 +10,6 @@ const DiscourseRoute = Route.extend({
seenUser();
},
- // Set to true to refresh a model without a transition if a query param
- // changes
- resfreshQueryWithoutTransition: false,
-
activate() {
this._super(...arguments);
if (this.showFooter) {
@@ -22,22 +17,6 @@ const DiscourseRoute = Route.extend({
}
},
- refresh() {
- if (!this.refreshQueryWithoutTransition) {
- return this._super(...arguments);
- }
-
- const router = getOwner(this).lookup("router:main");
- if (!router._routerMicrolib.activeTransition) {
- const controller = this.controller,
- model = controller.get("model"),
- params = this.controller.getProperties(Object.keys(this.queryParams));
-
- model.set("loading", true);
- this.model(params).then(m => this.setupController(controller, m));
- }
- },
-
_refreshTitleOnce() {
this.send("_collectTitleTokens", []);
},