From 3a85704b486d007c04f3861c9a14cffdab1375e0 Mon Sep 17 00:00:00 2001 From: Tim Taubert Date: Wed, 22 Apr 2015 16:05:40 +0200 Subject: [PATCH] Bug 1157235 - Remove unused sessionstore-state-write notification r=Yoric --- browser/components/sessionstore/SessionSaver.jsm | 3 --- browser/components/sessionstore/test/head.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/browser/components/sessionstore/SessionSaver.jsm b/browser/components/sessionstore/SessionSaver.jsm index 9d033337337d..66d1eb53d513 100644 --- a/browser/components/sessionstore/SessionSaver.jsm +++ b/browser/components/sessionstore/SessionSaver.jsm @@ -246,9 +246,6 @@ let SessionSaverInternal = { * Write the given state object to disk. */ _writeState: function (state) { - // Inform observers - notify(null, "sessionstore-state-write"); - stopWatchStart("WRITE_STATE_LONGEST_OP_MS"); // We update the time stamp before writing so that we don't write again diff --git a/browser/components/sessionstore/test/head.js b/browser/components/sessionstore/test/head.js index d661f631511a..584f08e1b3b3 100644 --- a/browser/components/sessionstore/test/head.js +++ b/browser/components/sessionstore/test/head.js @@ -239,7 +239,7 @@ function waitForTopic(aTopic, aTimeout, aCallback) { * Wait until session restore has finished collecting its data and is * has written that data ("sessionstore-state-write-complete"). * - * @param {function} aCallback If sessionstore-state-write is sent + * @param {function} aCallback If sessionstore-state-write-complete is sent * within buffering interval + 100 ms, the callback is passed |true|, * otherwise, it is passed |false|. */