[thci] remove unused assignments (#4719)

This commit is contained in:
Jonathan Hui
2020-03-23 00:09:13 -07:00
committed by GitHub
parent 5a82d90e4d
commit 2f63f74693
2 changed files with 2 additions and 10 deletions
-3
View File
@@ -756,9 +756,6 @@ class OpenThread(IThci):
print(xEUI)
address64 = ''
try:
if not xEUI:
address64 = self.mac
if not isinstance(xEUI, str):
address64 = self.__convertLongToHex(xEUI, 16)
else:
+2 -7
View File
@@ -940,9 +940,6 @@ class OpenThread_WpanCtl(IThci):
address64 = ''
try:
if not xEUI:
address64 = self.mac
if not isinstance(xEUI, str):
address64 = self.__convertLongToHex(xEUI, 16)
else:
@@ -1414,8 +1411,7 @@ class OpenThread_WpanCtl(IThci):
cmd = 'ping %s -c 1 -s %s -I %s' % (destination, str(length),
self.wpan_interface)
if self._is_net:
ssh_stdin, ssh_stdout, ssh_stderr = self.handle.exec_command(
cmd)
self.handle.exec_command(cmd)
else:
self._sendline(cmd)
self._expect(cmd)
@@ -1438,8 +1434,7 @@ class OpenThread_WpanCtl(IThci):
cmd = 'ping %s -c 1 -s %s -I %s' % (destination, str(length),
self.wpan_interface)
if self._is_net:
ssh_stdin, ssh_stdout, ssh_stderr = self.handle.exec_command(
cmd)
self.handle.exec_command(cmd)
else:
self._sendline(cmd)
self._expect(cmd)