From 33abc76c88597042c305d87f2e5a9ff9f4fe142b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 22 Dec 2020 23:54:34 -0500 Subject: [PATCH] Remove old unused (and broken) storage function --- chrome/content/zotero/xpcom/storage.js | 37 -------------------------- 1 file changed, 37 deletions(-) diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index a7518371ae..a9d8328f58 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -46,43 +46,6 @@ Zotero.Sync.Storage = new function () { } - /** - * Check if modification time of file on disk matches the mod time - * in the database - * - * @param {Integer} itemID - * @return {Boolean} - */ - this.isFileModified = function (itemID) { - var item = Zotero.Items.get(itemID); - var file = item.getFile(); - if (!file) { - return false; - } - - var fileModTime = item.attachmentModificationTime; - if (!fileModTime) { - return false; - } - - var syncModTime = item.attachmentSyncedModificationTime; - if (fileModTime != syncModTime) { - var syncHash = item.attachmentSyncedHash; - if (syncHash) { - var fileHash = item.attachmentHash; - if (fileHash && fileHash == syncHash) { - Zotero.debug("Mod time didn't match (" + fileModTime + "!=" + syncModTime + ") " - + "but hash did for " + file.leafName + " -- ignoring"); - return false; - } - } - return true; - } - - return false; - } - - this.getItemDownloadImageNumber = function (item) { var numImages = 64;