From a8dce25cef3e583cf8034d4e76d24cf5ec0fff29 Mon Sep 17 00:00:00 2001 From: Sylvester Keil Date: Fri, 3 Aug 2018 22:37:09 +0200 Subject: [PATCH] Deprecate Z.File.getBinaryContents --- chrome/content/zotero/xpcom/file.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/xpcom/file.js b/chrome/content/zotero/xpcom/file.js index e91ce07e00..9728726106 100644 --- a/chrome/content/zotero/xpcom/file.js +++ b/chrome/content/zotero/xpcom/file.js @@ -130,6 +130,8 @@ Zotero.File = new function(){ * Get contents of a binary file */ this.getBinaryContents = function(file) { + Zotero.debug("Zotero.File.getBinaryContents() is deprecated -- " + + "use Zotero.File.getBinaryContentsAsync() when possible", 2); var iStream = Components.classes["@mozilla.org/network/file-input-stream;1"] .createInstance(Components.interfaces.nsIFileInputStream); iStream.init(file, 0x01, 0o664, 0);