mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
dist/tools/usb-serial/ttys.py: clean up unused function
The shorten() function was previously used to fit in overlong entries into the table. But since it is no longer used, it can be dropped.
This commit is contained in:
parent
79958d0bf5
commit
f0068a7c96
10
dist/tools/usb-serial/ttys.py
vendored
10
dist/tools/usb-serial/ttys.py
vendored
@ -52,16 +52,6 @@ def filters_match(filters, tty):
|
||||
return True
|
||||
|
||||
|
||||
def shorten(string, length):
|
||||
"""
|
||||
Shorten the given string to the given length, if needed
|
||||
"""
|
||||
if len(string) > length:
|
||||
return string[:length - 3] + "..."
|
||||
|
||||
return string
|
||||
|
||||
|
||||
def parse_args(args):
|
||||
"""
|
||||
Parse the given command line style arguments with argparse
|
||||
|
Loading…
Reference in New Issue
Block a user