diff --git a/toolkit/modules/sessionstore/Utils.jsm b/toolkit/modules/sessionstore/Utils.jsm index f0dca9078b41..15bfd4fd9017 100644 --- a/toolkit/modules/sessionstore/Utils.jsm +++ b/toolkit/modules/sessionstore/Utils.jsm @@ -9,11 +9,6 @@ var EXPORTED_SYMBOLS = ["Utils"]; ChromeUtils.import("resource://gre/modules/Services.jsm", this); ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm", this); -ChromeUtils.defineModuleGetter( - this, - "NetUtil", - "resource://gre/modules/NetUtil.jsm" -); XPCOMUtils.defineLazyServiceGetter( this, "eTLDService", @@ -22,21 +17,6 @@ XPCOMUtils.defineLazyServiceGetter( ); var Utils = Object.freeze({ - serializeInputStream(aStream) { - let data = { - content: NetUtil.readInputStreamToString(aStream, aStream.available()), - }; - - if (aStream instanceof Ci.nsIMIMEInputStream) { - data.headers = new Map(); - aStream.visitHeaders((name, value) => { - data.headers.set(name, value); - }); - } - - return data; - }, - /** * Returns true if the |url| passed in is part of the given root |domain|. * For example, if |url| is "www.mozilla.org", and we pass in |domain| as @@ -56,16 +36,6 @@ var Utils = Object.freeze({ return eTLDService.hasRootDomain(host, domain); }, - shallowCopy(obj) { - let retval = {}; - - for (let key of Object.keys(obj)) { - retval[key] = obj[key]; - } - - return retval; - }, - /** * Restores frame tree |data|, starting at the given root |frame|. As the * function recurses into descendant frames it will call cb(frame, data) for