MAINT: Remove unused rounding method.

round_to_nearest is no longer referred elsewhere.
This commit is contained in:
Eddie Hebert
2014-02-26 21:54:38 -05:00
parent 7f724a9696
commit e3096e9afc
-3
View File
@@ -250,9 +250,6 @@ class PerformancePeriod(object):
if self.keep_transactions:
self.processed_transactions[txn.dt].append(txn)
def round_to_nearest(self, x, base=5):
return int(base * round(float(x) / base))
def calculate_positions_value(self):
return np.dot(self._position_amounts, self._position_last_sale_prices)