mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Remove getURL and getURLWithCDN deprecations, they have been removed
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user