git ssb

4+

Dominic / scuttlebot



Commit e1e0ab885aaa57a0630e5ff36031bec1c3f845f4

remove old code

Dominic Tarr committed on 5/28/2017, 9:29:03 AM
Parent: a4af2ae17277b41330b06887b35138e2fab83b39

Files changed

plugins/friends.jschanged
plugins/friends.jsView
@@ -92,45 +92,8 @@
9292 push(k, patch[k][0])
9393 }
9494 reachable = _reachable
9595 }
96-
97-// var out = []
98-// if(v.from && v.to) {
99-// if(!reachable) {
100-// //this is is hack...
101-// reachable = {}
102-// reachable[sbot.id] = 0
103-// push(sbot.id, 0)
104-// }
105-// //recalculate the portion of the graph, reachable in opts.hops
106-// //(but only the portion not already reachable)
107-// var _reachable = G.hops(g, v.from, reachable[v.from], opts.hops || 3, reachable)
108-//
109-// for(var k in _reachable) {
110-// //check if it has _become_ reachable just now.
111-// //if so add to the set
112-// if(reachable[k] == null)
113-// push(k, reachable[k] = _reachable[k])
114-// //if this has shortened the path, then update.
115-// else if(reachable[k] > _reachable[k])
116-// reachable[k] = _reachable[k]
117-// //else, we where already able to reach this node.
118-// }
119-// }
120-// else {
121-// var _g = v
122-// reachable = G.hops(_g, start, 0, opts.hops || 3)
123-// for(var k in reachable)
124-// push(k, reachable[k])
125-// }
126-// if(first) {
127-// first = false
128-// if(live) {
129-// out.push({sync: true})
130-// }
131-// }
132-//
13396 return out
13497 })
13598
13699 )
@@ -150,18 +113,4 @@
150113 }
151114 }
152115
153116
154-
155-
156-
157-
158-
159-
160-
161-
162-
163-
164-
165-
166-
167-

Built with git-ssb-web