# HG changeset patch # User Myk Melez # Date 1224882852 25200 # Node ID 1bbcbc4d95d216420d601e9d5833d05604b21dcf # Parent 62557df255697388aeb588f8ff0da53fdb4301ae we don't need the _restartApp method anymore diff -r 62557df25569 -r 1bbcbc4d95d2 modules/service.js --- a/modules/service.js Fri Oct 24 14:13:17 2008 -0700 +++ b/modules/service.js Fri Oct 24 14:14:12 2008 -0700 @@ -304,23 +304,8 @@ */ hasMessage: function(aExternalID) { return SnowlDatastore.selectHasMessage(aExternalID); - }, + } - _restartApp: function() { - // Notify all windows that an application quit has been requested. - var os = Cc["@mozilla.org/observer-service;1"]. - getService(Ci.nsIObserverService); - var cancelQuit = Cc["@mozilla.org/supports-PRBool;1"]. - createInstance(Ci.nsISupportsPRBool); - os.notifyObservers(cancelQuit, "quit-application-requested", "restart"); - - // Something aborted the quit process. - if (cancelQuit.data) - return; - - Cc["@mozilla.org/toolkit/app-startup;1"].getService(Ci.nsIAppStartup). - quit(Ci.nsIAppStartup.eRestart | Ci.nsIAppStartup.eAttemptQuit); - } }; SnowlService._init();