Browse Source

batman: remove batvis-dump functionality

Helge Jung 9 years ago
parent
commit
56e4aa3a30
1 changed files with 1 additions and 7 deletions
  1. 1 7
      ffstatus/batman.py

+ 1 - 7
ffstatus/batman.py

@@ -38,7 +38,7 @@ class BatmanParser:
 
         return True
 
-    def fetch(self, batadv_dump=None):
+    def fetch(self):
         """Fetches the current data from batadv-vis."""
 
         data = {}
@@ -49,12 +49,6 @@ class BatmanParser:
         rawdata = unicode(rawdata, encoding='latin1', errors='replace')
         batmandata = json.loads(rawdata)
 
-        # dump raw data into file if requested
-        if batadv_dump is not None:
-            dumpfile = io.open(batadv_dump, 'w')
-            dumpfile.write(rawdata)
-            dumpfile.close()
-
         # parse raw data, convert all MAC into nodeid
         for item in batmandata['vis']:
             itemid = ffstatus.mac2id(item['primary'])