Skip to content

Commit

Permalink
Remove pan/zoom subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
jooste committed Jan 15, 2025
1 parent 6e93c12 commit 11e7052
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions bluesky/simulation/screenio.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
from bluesky.core import Entity
from bluesky.tools import aero
from bluesky.core.walltime import Timer
from bluesky.network.subscriber import subscriber
from bluesky.network.publisher import state_publisher, StatePublisher
import bluesky.network.context as ctx


# =========================================================================
Expand Down Expand Up @@ -40,9 +38,6 @@ def __init__(self):
self.route_all = ""

# Screen state overrides per client
self.client_pan = dict()
self.client_zoom = dict()
self.client_ar = dict()
self.client_route = dict()

# Dicts of custom aircraft and group colors
Expand Down Expand Up @@ -116,13 +111,6 @@ def colour(self, name, r, g, b):
elif name in bs.traf.id:
self.custacclr[name] = (r, g, b)

@subscriber
def panzoom(self, pan, zoom, ar=1, absolute=True):
self.client_pan[ctx.sender_id] = pan
self.client_zoom[ctx.sender_id] = zoom
self.client_ar[ctx.sender_id] = ar
return True

# =========================================================================
# Slots
# =========================================================================
Expand Down

0 comments on commit 11e7052

Please sign in to comment.