1
0
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:
Marian Buschsieweke 2022-06-03 19:56:01 +02:00
parent 79958d0bf5
commit f0068a7c96
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -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