Skip to content

Commit

Permalink
Revert "Revert "DEV: Remove Discourse.Route""
Browse files Browse the repository at this point in the history
This reverts commit b4d27d3.

Plugins have been updated to not use this anymore.
  • Loading branch information
eviltrout committed May 12, 2020
1 parent e73e9aa commit d9f5499
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions app/assets/javascripts/discourse/app/routes/discourse.js
Expand Up @@ -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({
Expand Down Expand Up @@ -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;

0 comments on commit d9f5499

Please sign in to comment.