From 471c17f31e64effb5a55df1c91a96c4d350ca220 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Wed, 6 Jun 2012 16:18:23 +0200 Subject: [PATCH] remove wilder_scheiss --- nodedb.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/nodedb.py b/nodedb.py index 4ca7fef..7e799dc 100644 --- a/nodedb.py +++ b/nodedb.py @@ -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 -