From 5a37b8709a751a5db5e831f020f3d5a62dc7fc1c Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Wed, 18 Dec 2019 09:34:17 +0000 Subject: [PATCH] Remove unused `flatten_one_level` function This has nothing to do with differential operators, and isn't used or documented. In the very unlikely event that anyone was using this, the builtin `itertools.chain.from_iterable` provides similar functionality. --- galgebra/mv.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/galgebra/mv.py b/galgebra/mv.py index e89b3763..cff29157 100644 --- a/galgebra/mv.py +++ b/galgebra/mv.py @@ -1946,10 +1946,6 @@ class Dop(object): 'debug': (False, 'True to print out debugging information'), 'fmt_dop': (1, '1 for normal dop partial derivative formating')} - @staticmethod - def flatten_one_level(lst): - return [inner for outer in lst for inner in outer] - def __init__(self, *args, **kwargs): kwargs = metric.test_init_slots(Dop.init_slots, **kwargs)