remove unused channel_monitor.py

This commit is contained in:
Brian Warner 2017-04-03 23:50:57 -07:00
parent 6eae5ecf64
commit 580c5a4712

View File

@ -1,16 +0,0 @@
from __future__ import print_function, unicode_literals
import sys
from weakref import ref
class ChannelMonitor:
def __init__(self):
self._open_channels = set()
def add(self, w):
wr = ref(w, self._lost)
self._open_channels.add(wr)
def _lost(self, wr):
print("Error: a Wormhole instance was not closed", file=sys.stderr)
def close(self, w):
self._open_channels.discard(ref(w))
monitor = ChannelMonitor() # singleton