aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-04-09 21:40:39 +0100
committerMichael Williamson <mike@zwobble.org>2013-04-09 21:40:39 +0100
commit3ccbee6d6f5c61458209da23a5aea6322726b7cd (patch)
treef4aedc7de8f328205a2a4d0c739e6e469821e832 /lib
parentf854e23429c23451a968dfe4691fba5eb21ea21e (diff)
Remove old code
Diffstat (limited to 'lib')
-rw-r--r--lib/docx-reader.js13
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
};