From eed7983404fdf7f2f2b48144035739aa158099d7 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 11 May 2020 16:11:33 -0400 Subject: [PATCH] DEV: Remove `Discourse.Route` --- .../javascripts/discourse/app/routes/discourse.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app/assets/javascripts/discourse/app/routes/discourse.js b/app/assets/javascripts/discourse/app/routes/discourse.js index 91be0b43312..6d04c6b04fd 100644 --- a/app/assets/javascripts/discourse/app/routes/discourse.js +++ b/app/assets/javascripts/discourse/app/routes/discourse.js @@ -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;