Skip to content

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

Remove `getURL` and `getURLWithCDN` deprecations, they have been removed

Robin Ward792bd3faff0e
diff --git a/app/assets/javascripts/discourse/app/app.js b/app/assets/javascripts/discourse/app/app.js
index 4a17b540a73..765d0300087 100644
--- a/app/assets/javascripts/discourse/app/app.js
+++ b/app/assets/javascripts/discourse/app/app.js
@@ -3,8 +3,6 @@ import Application from "@ember/application";
import { computed } from "@ember/object";
import { buildResolver } from "discourse-common/resolver";
import discourseComputed from "discourse-common/utils/decorators";
-import { default as getURL, getURLWithCDN } from "discourse-common/lib/get-url";
-import deprecated from "discourse-common/lib/deprecated";
const _pluginCallbacks = [];
@@ -21,22 +19,6 @@ const Discourse = Application.extend({
Mousetrap.reset();
},
- getURL(url) {
- deprecated(
- "Import `getURL` from `discourse-common/lib/get-url` instead of `Discourse.getURL`",
- { since: "2.5", dropFrom: "2.6" }
- );
- return getURL(url);
- },
-
- getURLWithCDN(url) {
- deprecated(
- "Import `getURLWithCDN` from `discourse-common/lib/get-url` instead of `Discourse.getURLWithCDN`",
- { since: "2.5", dropFrom: "2.6" }
- );
- return getURLWithCDN(url);
- },
-
Resolver: buildResolver("discourse"),
authenticationComplete(options) {