Commit 78eed6f9 authored by Julien Muchembled's avatar Julien Muchembled

rule: remove useless methods

parent fd8eca22
......@@ -72,18 +72,6 @@ class DeliveryRootSimulationRule(RuleMixin, MovementCollectionUpdaterMixin):
"""
return DeliveryRuleMovementGenerator(applied_rule=context, rule=self)
def _getMovementGeneratorContext(self, context):
"""
Return the movement generator context to use for expand
"""
return context
def _getMovementGeneratorMovementList(self, context):
"""
Return the movement lists to provide to the movement generator
"""
return []
def _isProfitAndLossMovement(self, movement):
# For a kind of trade rule, a profit and loss movement lacks source
# or destination.
......
......@@ -72,18 +72,6 @@ class DeliverySimulationRule(RuleMixin, MovementCollectionUpdaterMixin):
"""
return DeliveryRuleMovementGenerator(applied_rule=context, rule=self)
def _getMovementGeneratorContext(self, context):
"""
Return the movement generator context to use for expand
"""
return context
def _getMovementGeneratorMovementList(self, context):
"""
Return the movement lists to provide to the movement generator
"""
return []
def _isProfitAndLossMovement(self, movement):
# For a kind of trade rule, a profit and loss movement lacks source
# or destination.
......
......@@ -80,18 +80,6 @@ class InvoiceSimulationRule(RuleMixin, MovementCollectionUpdaterMixin):
"""
return InvoicingRuleMovementGenerator(applied_rule=context, rule=self)
def _getMovementGeneratorContext(self, context):
"""
Return the movement generator context to use for expand
"""
return context
def _getMovementGeneratorMovementList(self, context, movement_list=None, rounding=None):
"""
Return the movement lists to provide to the movement generator
"""
return []
def _isProfitAndLossMovement(self, movement):
# For a kind of trade rule, a profit and loss movement lacks source
# or destination.
......
......@@ -75,18 +75,6 @@ class InvoiceTransactionSimulationRule(RuleMixin,
"""
return InvoiceTransactionRuleMovementGenerator(applied_rule=context, rule=self)
def _getMovementGeneratorContext(self, context):
"""
Return the movement generator context to use for expand
"""
return context
def _getMovementGeneratorMovementList(self, context):
"""
Return the movement lists to provide to the movement generator
"""
return []
def _isProfitAndLossMovement(self, movement):
# For a kind of trade rule, a profit and loss movement lacks source
# or destination.
......
......@@ -82,18 +82,6 @@ class OrderRootSimulationRule(RuleMixin, MovementCollectionUpdaterMixin):
"""
return OrderRuleMovementGenerator(applied_rule=context, rule=self)
def _getMovementGeneratorContext(self, context):
"""
Return the movement generator context to use for expand
"""
return context
def _getMovementGeneratorMovementList(self, context):
"""
Return the movement lists to provide to the movement generator
"""
return []
def _isProfitAndLossMovement(self, movement):
# For a kind of trade rule, a profit and loss movement lacks source
# or destination.
......
......@@ -70,18 +70,6 @@ class PaymentSimulationRule(RuleMixin, MovementCollectionUpdaterMixin):
"""
return PaymentRuleMovementGenerator(applied_rule=context, rule=self)
def _getMovementGeneratorContext(self, context):
"""
Return the movement generator context to use for expand
"""
return context
def _getMovementGeneratorMovementList(self, context):
"""
Return the movement lists to provide to the movement generator
"""
return []
def _isProfitAndLossMovement(self, movement):
# For a kind of trade rule, a profit and loss movement lacks source
# or destination.
......
......@@ -70,18 +70,6 @@ class TradeModelSimulationRule(RuleMixin, MovementCollectionUpdaterMixin):
"""
return TradeModelRuleMovementGenerator(applied_rule=context, rule=self)
def _getMovementGeneratorContext(self, context):
"""
Return the movement generator context to use for expand
"""
return context
def _getMovementGeneratorMovementList(self, context):
"""
Return the movement lists to provide to the movement generator
"""
return []
def _isProfitAndLossMovement(self, movement):
# For a kind of trade rule, a profit and loss movement lacks source
# or destination.
......
......@@ -260,18 +260,10 @@ class RuleMixin(Predicate):
"""
raise NotImplementedError
def _getMovementGeneratorContext(self, applied_rule):
"""
Return the movement generator context to use for expand
XXX-JPS likely useless
"""
raise NotImplementedError
def _getMovementGeneratorMovementList(self, applied_rule):
"""
Return the movement lists to provide to the movement generator
"""
raise NotImplementedError
def _getDivergenceTesterList(self, exclude_quantity=True):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment