From f3742f29daea1f8dc47d0afaf643161548e0ef85 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 2 Aug 2011 14:56:09 +1200 Subject: We no longer need to track clientconnections. --- libmproxy/flow.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'libmproxy') diff --git a/libmproxy/flow.py b/libmproxy/flow.py index bbdd21a6..def52caa 100644 --- a/libmproxy/flow.py +++ b/libmproxy/flow.py @@ -336,8 +336,6 @@ class Flow: class State: def __init__(self): - self.client_connections = [] - self._flow_map = {} self._flow_list = [] self.view = [] @@ -361,15 +359,6 @@ class State: c += 1 return c - def clientconnect(self, cc): - self.client_connections.append(cc) - - def clientdisconnect(self, dc): - """ - Start a browser connection. - """ - self.client_connections.remove(dc.client_conn) - def add_request(self, req): """ Add a request to the state. Returns the matching flow. @@ -634,11 +623,9 @@ class FlowMaster(controller.Master): #end nocover def handle_clientconnect(self, r): - self.state.clientconnect(r) r.ack() def handle_clientdisconnect(self, r): - self.state.clientdisconnect(r) r.ack() def handle_error(self, r): -- cgit v1.2.3