Skip to content

Commit 8ddafbc

Browse files
committed
drop old pipe
1 parent b507fe2 commit 8ddafbc

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/pyff/pipes.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -50,28 +50,6 @@ def wrapper_pipe(*iargs, **ikwargs) -> Any:
5050
return pipe_decorator
5151

5252

53-
def pipe_old(*args, **kwargs):
54-
"""
55-
Register the decorated function in the pyff pipe registry
56-
:param name: optional name - if None, use function name
57-
"""
58-
59-
def deco_none(f):
60-
return f
61-
62-
def deco_pipe(f):
63-
f_name = kwargs.get('name', f.__name__)
64-
registry[f_name] = f
65-
return f
66-
67-
if 1 == len(args):
68-
f = args[0]
69-
registry[f.__name__] = f
70-
return deco_none
71-
else:
72-
return deco_pipe
73-
74-
7553
class PipeException(PyffException):
7654
pass
7755

0 commit comments

Comments
 (0)