Skip to content

Commit 05a798c

Browse files
committed
connections: Delete unused classes.
These are no longer used.
1 parent 4023ff3 commit 05a798c

File tree

3 files changed

+2
-539
lines changed

3 files changed

+2
-539
lines changed

pybricksdev/cli/__init__.py

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,7 @@ def add_parser(self, subparsers: argparse._SubParsersAction):
168168

169169
async def run(self, args: argparse.Namespace):
170170
from ..ble import find_device
171-
from ..connections import (
172-
PybricksHub,
173-
EV3Connection,
174-
USBPUPConnection,
175-
USBRPCConnection,
176-
)
171+
from ..connections import PybricksHub, EV3Connection
177172

178173
# Pick the right connection
179174
if args.conntype == "ssh":
@@ -193,18 +188,8 @@ async def run(self, args: argparse.Namespace):
193188
print(f"Searching for {args.name or 'any hub with Pybricks service'}...")
194189
device_or_address = await find_device(args.name)
195190

196-
elif args.conntype == "usb" and args.name == "lego":
197-
# It's LEGO stock firmware Hub with USB.
198-
hub = USBRPCConnection()
199-
device_or_address = "LEGO Technic Large Hub in FS Mode"
200191
elif args.conntype == "usb":
201-
if args.name is None:
202-
print("--name is required for USB connections", file=sys.stderr)
203-
exit(1)
204-
205-
# It's a Pybricks Hub with USB. Port name is given.
206-
hub = USBPUPConnection()
207-
device_or_address = args.name
192+
pass
208193
else:
209194
raise ValueError(f"Unknown connection type: {args.conntype}")
210195

0 commit comments

Comments
 (0)