From cf5c4aeacb1703d0ffd35bdb5297d3494fee9a22 Mon Sep 17 00:00:00 2001 From: Arne Schwarck Date: Wed, 24 Jul 2019 20:45:53 +0200 Subject: [PATCH] self.poller not used (#759) I do not see the need for zmq and the poller being initialized and not used. --- selfdrive/controls/lib/planner.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/selfdrive/controls/lib/planner.py b/selfdrive/controls/lib/planner.py index 94cc2fc1358cad..f5614eee7289bc 100755 --- a/selfdrive/controls/lib/planner.py +++ b/selfdrive/controls/lib/planner.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -import zmq import math import numpy as np from common.params import Params @@ -65,7 +64,6 @@ def limit_accel_in_turns(v_ego, angle_steers, a_target, CP): class Planner(object): def __init__(self, CP, fcw_enabled): self.CP = CP - self.poller = zmq.Poller() self.plan = messaging.pub_sock(service_list['plan'].port) self.live_longitudinal_mpc = messaging.pub_sock(service_list['liveLongitudinalMpc'].port)