From b1ed4c6d8c4e1cba8160abfc233126b9d823714e Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Tue, 16 Oct 2012 21:48:38 -0400 Subject: [PATCH] Removes unused sum_true method. --- zipline/gens/utils.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/zipline/gens/utils.py b/zipline/gens/utils.py index 63aa8197..94e6985a 100644 --- a/zipline/gens/utils.py +++ b/zipline/gens/utils.py @@ -106,14 +106,6 @@ def create_trade(sid, price, amount, datetime, source_id="test_factory"): return row -def sum_true(bool_iterable): - """ - Takes an iterable of boolean values and returns the number of - those values that are True. - """ - return sum(map(int, bool_iterable)) - - def assert_datasource_protocol(event): """Assert that an event meets the protocol for datasource outputs."""