DEV: Remove deprecated pretty-text functions/file (#16397)

Nothing in all-the* uses those anymore
This commit is contained in:
Jarek Radosz 2022-04-06 22:48:50 +02:00 committed by GitHub
parent 11abb50cf7
commit 06d4445ab0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 34 deletions

View File

@ -7,7 +7,6 @@
//= require ./pretty-text/addon/engines/discourse-markdown-it
//= require xss.min
//= require ./pretty-text/addon/allow-lister
//= require ./pretty-text/addon/white-lister
//= require ./pretty-text/addon/sanitizer
//= require ./pretty-text/addon/oneboxer
//= require ./pretty-text/addon/oneboxer-cache

View File

@ -1,4 +1,3 @@
import deprecated from "discourse-common/lib/deprecated";
// to match:
// abcd
// abcd[test]
@ -27,14 +26,6 @@ export default class AllowLister {
this._rawFeatures.push([feature, info]);
}
whiteListFeature(feature, info) {
deprecated("`whiteListFeature` has been replaced with `allowListFeature`", {
since: "2.6.0.beta.4",
dropFrom: "2.7.0",
});
this.allowListFeature(feature, info);
}
disable(feature) {
this._enabled[feature] = false;
this._cache = null;
@ -105,14 +96,6 @@ export default class AllowLister {
return this._cache.allowList;
}
getWhiteList() {
deprecated("`getWhiteList` has been replaced with `getAllowList`", {
since: "2.6.0.beta.4",
dropFrom: "2.7.0",
});
return this.getAllowList();
}
getCustom() {
this._ensureCache();
return this._cache.custom;

View File

@ -1,16 +0,0 @@
import AllowLister, {
DEFAULT_LIST as NEW_DEFAULT_LIST,
} from "pretty-text/allow-lister";
import deprecated from "discourse-common/lib/deprecated";
export default class WhiteLister extends AllowLister {
constructor(options) {
deprecated("`WhiteLister` has been replaced with `AllowLister`", {
since: "2.6.0.beta.4",
dropFrom: "2.7.0",
});
super(options);
}
}
export const DEFAULT_LIST = NEW_DEFAULT_LIST;