Skip to content

Commit

Permalink
Fix nasa#118, Resolve LGTM warnings
Browse files Browse the repository at this point in the history
- Resolves commented out code warnings
- Resolves unused packages in hand generated code
  • Loading branch information
skliper committed Jul 27, 2020
1 parent 2cdf182 commit c377629
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
8 changes: 0 additions & 8 deletions Subsystems/cmdGui/Parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
import getopt
import pickle
import re
import shlex
import subprocess
import sys
from pathlib import Path

Expand Down Expand Up @@ -68,12 +66,6 @@ def ProcessSendButton(self):
self.mcu = MiniCmdUtil(pageAddress, pagePort, pageEndian, pagePktId,
cmdCode, param_string.strip())
sendSuccess = self.mcu.sendPacket()
# launch_string = (
# f'{ROOTDIR.parent}/cmdUtil/cmdUtil --host={pageAddress} '
# f'--port={pagePort} --pktid={pagePktId} --endian={pageEndian} '
# f'--cmdcode={cmdCode} {param_string.strip()}')result
# cmd_args = shlex.split(launch_string)
# subprocess.Popen(cmd_args)
if sendSuccess:
self.status_box.setText('Command sent!')
else:
Expand Down
5 changes: 0 additions & 5 deletions Subsystems/cmdGui/UdpCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ def __init__(self):
self.setWindowTitle(pageTitle)
self.mcu = None

# for j in range(self.tblCommands.rowCount()):
# btn = self.tblCommands.cellWidget(j, 1)
# btn.clicked.connect(
# lambda _, x=j: self.ProcessSendButtonGeneric(x))

#
# Determines if command requires parameters
#
Expand Down
5 changes: 0 additions & 5 deletions Subsystems/tlmGUI/TelemetrySystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ def __init__(self):
self.pktCount = 0
self.subscription = None

# for k in range(21):
# pushButton = getattr(self, f"pushButton_{k}")
# pushButton.clicked.connect(
# lambda _, x=k: self.ProcessButtonGeneric(x))

#
# convert a string of binary bytes to ascii hex
#
Expand Down

0 comments on commit c377629

Please sign in to comment.