main: Remove log compatibility

global.log() hasn't been used since 3.6. It seems extremely unlikely
that any extensions are still using it, not least because `log()` is
more convenient.

Time to move on.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2830>
This commit is contained in:
Florian Müllner 2022-08-01 11:22:06 +02:00 committed by Marge Bot
parent b854c1bdbb
commit f07bf7b1b6

View File

@ -169,10 +169,6 @@ function _loggingFunc(...args) {
async function start() {
globalThis.log = _loggingFunc;
// These are here so we don't break compatibility.
global.logError = globalThis.log;
global.log = globalThis.log;
// Chain up async errors reported from C
global.connect('notify-error', (global, msg, detail) => {
notifyError(msg, detail);