From 9b4b6b9a30fcc5574ca7e7b34e6f6adaf673ed76 Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Wed, 12 Mar 2014 04:07:21 +0400 Subject: [PATCH] zlib inflate exports cleanup --- lib/zlib/inflate.js | 69 ++++----------------------------------------- 1 file changed, 6 insertions(+), 63 deletions(-) diff --git a/lib/zlib/inflate.js b/lib/zlib/inflate.js index d9b695d..59dbadc 100644 --- a/lib/zlib/inflate.js +++ b/lib/zlib/inflate.js @@ -1522,81 +1522,24 @@ function inflateEnd(strm) { return Z_OK; } -function inflateGetDictionary(/*strm, dictionary, dictLength*/) { - -} - -function inflateSetDictionary(/*strm, dictionary, dictLength*/) { - -} - -function inflateGetHeader(/*strm, head*/) { - -} - -/* - Search buf[0..len-1] for the pattern: 0, 0, 0xff, 0xff. Return when found - or when out of input. When called, *have is the number of pattern bytes - found in order so far, in 0..3. On return *have is updated to the new - state. If on return *have equals four, then the pattern was found and the - return value is how many bytes were read including the last byte of the - pattern. If *have is less than four, then the pattern has not been found - yet and the return value is len. In the latter case, syncsearch() can be - called again with more data and the *have state. *have is initialized to - zero for the first call. - */ -//function syncsearch(/*have, buf, len*/) { -// -//} - -function inflateSync(/*strm*/) { - -} - -function inflateSyncPoint(/*strm*/) { - -} - -function inflateCopy(/*dest, source*/) { - -} - -function inflateUndermine(/*strm, subvert*/) { - -} - -function inflateMark(/*strm*/) { - -} - -exports.inflateResetKeep = inflateResetKeep; exports.inflateReset = inflateReset; - exports.inflateReset2 = inflateReset2; - -exports.inflateInit2 = inflateInit2; - +exports.inflateResetKeep = inflateResetKeep; exports.inflateInit = inflateInit; - +exports.inflateInit2 = inflateInit2; exports.inflatePrime = inflatePrime; - exports.inflate = inflate; - exports.inflateEnd = inflateEnd; +exports.inflateInfo = 'pako inflate (from Nodeca project)'; +/* Not implemented exports.inflateGetDictionary = inflateGetDictionary; - exports.inflateGetHeader = inflateGetHeader; - exports.inflateSetDictionary = inflateSetDictionary; - exports.inflateSync = inflateSync; - exports.inflateSyncPoint = inflateSyncPoint; - exports.inflateCopy = inflateCopy; - exports.inflateUndermine = inflateUndermine; - -exports.inflateMark = inflateMark; \ No newline at end of file +exports.inflateMark = inflateMark; +*/ \ No newline at end of file