Revert "DEV: Prefix deprecation notices and api warnings with theme name/id" (#15902)

This reverts commit a4ff69bd99.

Follow-up to 8e5b945b0f
This commit is contained in:
Alan Guo Xiang Tan
2022-02-11 11:37:12 +08:00
committed by GitHub
parent 8e5b945b0f
commit 76aadc67bb
2 changed files with 3 additions and 17 deletions
@@ -11,11 +11,5 @@ export default function deprecated(msg, opts = {}) {
if (opts.raiseError) {
throw msg;
}
// Using deferred `require` because this is discourse-specific logic which
// we don't want to run in pretty-text/wizard/etc.
const consolePrefix =
require("discourse/lib/source-identifier")?.consolePrefix() || "";
console.warn(consolePrefix, msg); //eslint-disable-line no-console
console.warn(msg); // eslint-disable-line no-console
}