git ssb

4+

Dominic / scuttlebot



Commit f6637c04fbd36d88883b300e1eab12c7be8cb309

remove some dead code

Matt McKegg committed on 11/3/2016, 3:11:07 PM
Parent: f703d4b697a84bf5b0753fbd2bad791fbc1f28e8

Files changed

plugins/gossip/index.jschanged
plugins/gossip/schedule.jschanged
plugins/gossip/index.jsView
@@ -1,16 +1,14 @@
11 'use strict'
22 var pull = require('pull-stream')
33 var Notify = require('pull-notify')
4-var toAddress = require('../../lib/util').toAddress
54 var mdm = require('mdmanifest')
65 var valid = require('../../lib/validators')
76 var apidoc = require('../../lib/apidocs').gossip
87 var u = require('../../lib/util')
98 var ref = require('ssb-ref')
109 var ping = require('pull-ping')
1110 var stats = require('statistics')
12-var isArray = Array.isArray
1311 var Schedule = require('./schedule')
1412 var Init = require('./init')
1513 var AtomicFile = require('atomic-file')
1614 var path = require('path')
@@ -261,10 +259,4 @@
261259
262260 return gossip
263261 }
264262 }
265-
266-
267-
268-
269-
270-
plugins/gossip/schedule.jsView
@@ -1,17 +1,11 @@
1-var nonPrivate = require('non-private-ip')
21 var ip = require('ip')
32 var onWakeup = require('on-wakeup')
43 var onNetwork = require('on-change-network')
54 var hasNetwork = require('has-network')
65
76 var pull = require('pull-stream')
8-var u = require('../../lib/util')
97
10-function rand(array) {
11- return array[~~(Math.random()*array.length)]
12-}
13-
148 function not (fn) {
159 return function (e) { return !fn(e) }
1610 }
1711
@@ -99,9 +93,9 @@
9993 }), count)
10094 }
10195
10296 var schedule = exports = module.exports =
103-function (gossip, config, server) {
97 +function (gossip, config, server) {
10498 // return
10599 var min = 60e3, hour = 60*60e3
106100
107101 //trigger hard reconnect after suspend or local network changes

Built with git-ssb-web