Remove `getURL` and `getURLWithCDN` deprecations, they have been removed
This commit is contained in:
parent
1ca81fbb95
commit
792bd3faff
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue