From f0068a7c9675e1d36a02eb97f03c230e7de2572b Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Fri, 3 Jun 2022 19:56:01 +0200 Subject: [PATCH] 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. --- dist/tools/usb-serial/ttys.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/dist/tools/usb-serial/ttys.py b/dist/tools/usb-serial/ttys.py index 59e3d24092..dc6f41d823 100755 --- a/dist/tools/usb-serial/ttys.py +++ b/dist/tools/usb-serial/ttys.py @@ -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