mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 04:29:29 +08:00
DEV: Remove deprecation for Discourse.Category
This commit is contained in:
parent
286b4e535e
commit
74db317974
|
@ -5,7 +5,6 @@ import RestModel from "discourse/models/rest";
|
|||
import { on } from "discourse-common/utils/decorators";
|
||||
import PermissionType from "discourse/models/permission-type";
|
||||
import { NotificationLevels } from "discourse/lib/notification-levels";
|
||||
import deprecated from "discourse-common/lib/deprecated";
|
||||
import Site from "discourse/models/site";
|
||||
import User from "discourse/models/user";
|
||||
|
||||
|
@ -513,14 +512,4 @@ Category.reopenClass({
|
|||
}
|
||||
});
|
||||
|
||||
Object.defineProperty(Discourse, "Category", {
|
||||
get() {
|
||||
deprecated(
|
||||
"Import the Category class instead of using Discourse.Category",
|
||||
{ since: "2.4.0", dropFrom: "2.5.0" }
|
||||
);
|
||||
return Category;
|
||||
}
|
||||
});
|
||||
|
||||
export default Category;
|
||||
|
|
Loading…
Reference in New Issue
Block a user