From 27b95ebb14bda0ddab52ba0534d244065c7c9c57 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 21 Sep 2011 03:43:03 +0000 Subject: [PATCH] Remove Zotero.sleep() --- chrome/content/zotero/xpcom/zotero.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 2bdeb88ab..79f055585 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -1426,22 +1426,6 @@ if(appInfo.platformVersion[0] >= 2) { } - /** - * Sleep for a given amount of time, allowing other events on main thread to be processed - * - * @param {Integer} ms Milliseconds to wait - */ - this.sleep = function (ms) { - var mainThread = Zotero.mainThread; - var endTime = Date.now() + ms; - do { - mainThread.processNextEvent(false); - } while (Date.now() < endTime); - - return; - }; - - /** * Allow other events (e.g., UI updates) on main thread to be processed if necessary *