From 3ccbee6d6f5c61458209da23a5aea6322726b7cd Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 9 Apr 2013 21:40:39 +0100 Subject: Remove old code --- lib/docx-reader.js | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'lib') diff --git a/lib/docx-reader.js b/lib/docx-reader.js index 9cb912f..0027a0a 100644 --- a/lib/docx-reader.js +++ b/lib/docx-reader.js @@ -84,19 +84,6 @@ function openZip(zipPath) { } return readDeferred.promise; - - if (exists(path)) { - return q.ninvoke(zipFile, "readFile", path) - .then(function(value) { - if (encoding) { - return value.toString(encoding); - } else { - return value; - } - }); - } else { - return q.reject(new Error("No file in zip: " + path)); - } }, exists: exists }; -- cgit v1.2.3