Commit 6b5ec2095160533416cd20a72f45e53f40849103
Remove dead code
cel committed on 12/1/2019, 5:52:45 AMParent: fc9566b3a2c93fc5f470b663a3be05ff99b640f6
Files changed
bin.js | changed |
bin.js | ||
---|---|---|
@@ -33,24 +33,8 @@ | ||
33 | 33 … | } |
34 | 34 … | return JSON.stringify(draftMsg, null, 2).length |
35 | 35 … | } |
36 | 36 … | |
37 | -function mapCollect(fn) { | |
38 | - var aborted | |
39 | - return function (read) { | |
40 | - var queue = [] | |
41 | - return function (abort, cb) { | |
42 | - if (aborted = abort) return read(abort, cb) | |
43 | - read(null, function next(end, data) { | |
44 | - if (end) return cb(end) | |
45 | - queue.push(data) | |
46 | - var result = fn(queue) | |
47 | - if (result) read(null, next) | |
48 | - }) | |
49 | - } | |
50 | - } | |
51 | -} | |
52 | - | |
53 | 37 … | function getJson(url, cb) { |
54 | 38 … | var opts = URL.parse(url) |
55 | 39 … | opts.headers = { |
56 | 40 … | 'User-Agent': userAgentBase |
Built with git-ssb-web