DEV: Remove `Discourse.Route`
This commit is contained in:
parent
74db317974
commit
eed7983404
|
@ -2,7 +2,6 @@ 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 deprecated from "discourse-common/lib/deprecated";
|
||||
import { seenUser } from "discourse/lib/user-presence";
|
||||
|
||||
const DiscourseRoute = Route.extend({
|
||||
|
@ -113,14 +112,4 @@ const DiscourseRoute = Route.extend({
|
|||
}
|
||||
});
|
||||
|
||||
Object.defineProperty(Discourse, "Route", {
|
||||
get() {
|
||||
deprecated("Import the Route class instead of using Discourse.Route", {
|
||||
since: "2.4.0",
|
||||
dropFrom: "2.5.0"
|
||||
});
|
||||
return Route;
|
||||
}
|
||||
});
|
||||
|
||||
export default DiscourseRoute;
|
||||
|
|
Loading…
Reference in New Issue