diff --git a/src/Oro/Bundle/BatchBundle/Step/ItemStep.php b/src/Oro/Bundle/BatchBundle/Step/ItemStep.php index 1b920831119..a9d4a585ee4 100644 --- a/src/Oro/Bundle/BatchBundle/Step/ItemStep.php +++ b/src/Oro/Bundle/BatchBundle/Step/ItemStep.php @@ -32,8 +32,6 @@ public function doExecute(StepExecution $stepExecution) $stepExecutor->execute($this); $this->flushStepElements(); - - $this->restoreStepElements(); } /** @@ -72,16 +70,4 @@ public function flushStepElements() } } } - - /** - * Restores step elements to a state that was before a job execution. - */ - protected function restoreStepElements() - { - foreach ($this->getConfigurableStepElements() as $element) { - if ($element instanceof StepExecutionRestoreInterface) { - $element->restoreStepExecution(); - } - } - } } diff --git a/src/Oro/Bundle/BatchBundle/Step/StepExecutionRestoreInterface.php b/src/Oro/Bundle/BatchBundle/Step/StepExecutionRestoreInterface.php deleted file mode 100644 index 46289724399..00000000000 --- a/src/Oro/Bundle/BatchBundle/Step/StepExecutionRestoreInterface.php +++ /dev/null @@ -1,17 +0,0 @@ -previousStepExecution = $this->stepExecution; - $this->stepExecution = $stepExecution; } - - /** - * {@inheritdoc} - */ - public function restoreStepExecution() - { - $this->stepExecution = $this->previousStepExecution; - } }