Remove old unused (and broken) storage function
This commit is contained in:
parent
5798926093
commit
33abc76c88
1 changed files with 0 additions and 37 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue