DEV: Remove `Discourse.Route`

This commit is contained in:
Robin Ward 2020-05-11 16:11:33 -04:00
parent 74db317974
commit eed7983404
1 changed files with 0 additions and 11 deletions

View File

@ -2,7 +2,6 @@ import { once } from "@ember/runloop";
import Composer from "discourse/models/composer"; import Composer from "discourse/models/composer";
import { getOwner } from "discourse-common/lib/get-owner"; import { getOwner } from "discourse-common/lib/get-owner";
import Route from "@ember/routing/route"; import Route from "@ember/routing/route";
import deprecated from "discourse-common/lib/deprecated";
import { seenUser } from "discourse/lib/user-presence"; import { seenUser } from "discourse/lib/user-presence";
const DiscourseRoute = Route.extend({ 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; export default DiscourseRoute;