From 0e8efb77867117d6b8a082721bdd5be30b4520d9 Mon Sep 17 00:00:00 2001 From: Barret Rennie Date: Thu, 23 Jun 2022 23:41:20 +0000 Subject: [PATCH] Bug 1772944 - Remove osfile.jsm from toolkit/profile/ r=mossop Differential Revision: https://phabricator.services.mozilla.com/D149305 --- toolkit/profile/xpcshell/head.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/toolkit/profile/xpcshell/head.js b/toolkit/profile/xpcshell/head.js index 96ba116bae25c..6f3bc893ea499 100644 --- a/toolkit/profile/xpcshell/head.js +++ b/toolkit/profile/xpcshell/head.js @@ -6,7 +6,6 @@ const { NetUtil } = ChromeUtils.import("resource://gre/modules/NetUtil.jsm"); const { FileUtils } = ChromeUtils.import( "resource://gre/modules/FileUtils.jsm" ); -const { OS } = ChromeUtils.import("resource://gre/modules/osfile.jsm"); const { AppConstants } = ChromeUtils.import( "resource://gre/modules/AppConstants.jsm" ); @@ -543,15 +542,6 @@ function checkProfileService( } } -/** - * Asynchronously reads an nsIFile from disk. - */ -async function readFile(file) { - let decoder = new TextDecoder(); - let data = await OS.File.read(file.path); - return decoder.decode(data); -} - function checkStartupReason(expected = undefined) { const tId = "startup.profile_selection_reason"; let scalars = TelemetryTestUtils.getProcessScalars("parent");