From cf57261165f41f6c9b93029f0fa69ba4158ebcac Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Sat, 9 Sep 2023 06:55:32 +0200 Subject: [PATCH] :fire: Remove unused method --- src/utils.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/utils.js b/src/utils.js index 8a4731e..a0c146a 100644 --- a/src/utils.js +++ b/src/utils.js @@ -45,16 +45,6 @@ export async function importInShellOnly(module) { return null; } -// This method can be used to import a module in the preferences process only. This -// is useful if you want to use a module in the preferences process, but not in -// extension.js. This method returns null if it is called in the GNOME Shell process. -export async function importInPrefsOnly(module) { - if (typeof global === 'undefined') { - return (await import(module)); - } - return null; -} - // This method can be used to import gettext. This is done differently in the // GNOME Shell process and in the preferences process. export async function importGettext() {