diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-04-09 21:40:39 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-04-09 21:40:39 +0100 |
| commit | 3ccbee6d6f5c61458209da23a5aea6322726b7cd (patch) | |
| tree | f4aedc7de8f328205a2a4d0c739e6e469821e832 | |
| parent | f854e23429c23451a968dfe4691fba5eb21ea21e (diff) | |
Remove old code
| -rw-r--r-- | lib/docx-reader.js | 13 |
1 files changed, 0 insertions, 13 deletions
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 }; |
