remove wilder_scheiss

This commit is contained in:
Nils Schneider 2012-06-06 16:18:23 +02:00
parent ba14852b4b
commit 471c17f31e

View file

@ -235,26 +235,3 @@ class NodeDB:
node.name = pair[2]
node.gps = pair[1]
def find_link(self, i):
for link in self._links:
if i in link[0]:
return link
def wilder_scheiss(self):
for node in self._nodes:
if node.group == 3 and node.gps:
i = self._nodes.index(node)
link = self.find_link(i)
if link:
linklist = list(link)
linklist.remove(i)
j = linklist[0]
for mac in node.macs:
self._nodes[j].add_mac(mac)
self._nodes[j].gps = node.gps
node.gps = None