From 7b4c1b6390a2cc946e1dc67e5bd759d03eacc458 Mon Sep 17 00:00:00 2001 From: troyyyyy Date: Thu, 16 Mar 2023 09:03:36 +0800 Subject: [PATCH] Remove unnecessary functions --- abl/utils/utils.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/abl/utils/utils.py b/abl/utils/utils.py index a0d5cd1..05e6f1c 100644 --- a/abl/utils/utils.py +++ b/abl/utils/utils.py @@ -3,11 +3,6 @@ from .plog import INFO from collections import OrderedDict from itertools import chain -def nested_length(l): - if not isinstance(l[0], (list, tuple)): - return 1 - return len(l) - def flatten(l): if not isinstance(l[0], (list, tuple)): return l