From 2522a6fc4c7669e872cd6fc60eb40d27c21d7fea Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Mon, 29 Apr 2013 14:58:29 -0400 Subject: [PATCH] MAINT: Remove unused Passthrough transform. Passthrough transform had been removed previously, removing remaining references to the class. --- zipline/transforms/utils.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/zipline/transforms/utils.py b/zipline/transforms/utils.py index 0a9375df..dabad6d8 100644 --- a/zipline/transforms/utils.py +++ b/zipline/transforms/utils.py @@ -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__