Skip to content

Commit

Permalink
Bug 1772944 - Remove osfile.jsm from toolkit/profile/ r=mossop
Browse files Browse the repository at this point in the history
  • Loading branch information
Barret Rennie committed Jun 23, 2022
1 parent 282e0ff commit 0e8efb7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions toolkit/profile/xpcshell/head.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 0e8efb7

Please sign in to comment.