mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-13 17:42:42 +08:00
MAINT: Remove unused Passthrough transform.
Passthrough transform had been removed previously, removing remaining references to the class.
This commit is contained in:
@@ -70,18 +70,6 @@ def check_window_length(window_length):
|
||||
raise InvalidWindowLength("window_length must be positive")
|
||||
|
||||
|
||||
class Passthrough(object):
|
||||
PASSTHROUGH = True
|
||||
"""
|
||||
Trivial class for forwarding events.
|
||||
"""
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def update(self, event):
|
||||
pass
|
||||
|
||||
|
||||
class TransformMeta(type):
|
||||
"""
|
||||
Metaclass that automatically packages a class inside of
|
||||
@@ -112,10 +100,6 @@ class StatefulTransform(object):
|
||||
assert hasattr(tnfm_class, 'update'), \
|
||||
"Stateful transform requires the class to have an update method"
|
||||
|
||||
# Flag set inside the Passthrough transform class to signify special
|
||||
# behavior if we are being fed to merged_transforms.
|
||||
self.passthrough = hasattr(tnfm_class, 'PASSTHROUGH')
|
||||
|
||||
# Create an instance of our transform class.
|
||||
if isinstance(tnfm_class, TransformMeta):
|
||||
# Classes derived TransformMeta have their __call__
|
||||
|
||||
Reference in New Issue
Block a user