Skip to content

Commit

Permalink
Remove getURL and getURLWithCDN deprecations, they have been removed
Browse files Browse the repository at this point in the history
  • Loading branch information
eviltrout committed Aug 6, 2020
1 parent 1ca81fb commit 792bd3f
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions app/assets/javascripts/discourse/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];

Expand All @@ -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) {
Expand Down

0 comments on commit 792bd3f

Please sign in to comment.