Bug 902727 - [Session Restore] Remove legacy _writeFileEncoder; r=smacleod

This commit is contained in:
Tim Taubert 2013-08-09 04:42:20 +02:00
parent b6b9cab220
commit c169a9b30c

View File

@ -485,8 +485,6 @@ let SessionStoreInternal = {
this._prefBranch.getBoolPref("sessionstore.resume_session_once")) this._prefBranch.getBoolPref("sessionstore.resume_session_once"))
this._prefBranch.setBoolPref("sessionstore.resume_session_once", false); this._prefBranch.setBoolPref("sessionstore.resume_session_once", false);
this._initEncoding();
this._performUpgradeBackup(); this._performUpgradeBackup();
this._sessionInitialized = true; this._sessionInitialized = true;
@ -521,13 +519,6 @@ let SessionStoreInternal = {
}.bind(this)); }.bind(this));
}, },
_initEncoding : function ssi_initEncoding() {
// The (UTF-8) encoder used to write to files.
XPCOMUtils.defineLazyGetter(this, "_writeFileEncoder", function () {
return new TextEncoder();
});
},
_initPrefs : function() { _initPrefs : function() {
this._prefBranch = Services.prefs.getBranch("browser."); this._prefBranch = Services.prefs.getBranch("browser.");