git ssb

0+

cel / ssb-wikimedia



Commit 6b5ec2095160533416cd20a72f45e53f40849103

Remove dead code

cel committed on 12/1/2019, 5:52:45 AM
Parent: fc9566b3a2c93fc5f470b663a3be05ff99b640f6

Files changed

bin.jschanged
bin.jsView
@@ -33,24 +33,8 @@
3333 }
3434 return JSON.stringify(draftMsg, null, 2).length
3535 }
3636
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-
5337 function getJson(url, cb) {
5438 var opts = URL.parse(url)
5539 opts.headers = {
5640 'User-Agent': userAgentBase

Built with git-ssb-web