BpConfigForm: remove legacy code

This commit is contained in:
Thomas Gelf 2015-03-16 13:10:55 +01:00
parent c9a0cda577
commit 37150c1f2e

View file

@ -23,8 +23,6 @@ class BpConfigForm extends Form
protected $processList = array(); protected $processList = array();
protected $session;
public function setup() public function setup()
{ {
$this->addElement('text', 'name', array( $this->addElement('text', 'name', array(
@ -74,12 +72,6 @@ class BpConfigForm extends Form
return array_combine($keys, $keys); return array_combine($keys, $keys);
} }
public function XXsetBackend($backend)
{
$this->backend = $backend;
return $this;
}
public function setStorage($storage) public function setStorage($storage)
{ {
$this->storage = $storage; $this->storage = $storage;
@ -110,12 +102,6 @@ class BpConfigForm extends Form
return $this; return $this;
} }
public function setSession($session)
{
$this->session = $session;
return $this;
}
public function onSuccess() public function onSuccess()
{ {
$name = $this->getValue('name'); $name = $this->getValue('name');
@ -149,16 +135,5 @@ class BpConfigForm extends Form
} else { } else {
Notification::success(sprintf('Process %s has NOT YET been modified', $name)); Notification::success(sprintf('Process %s has NOT YET been modified', $name));
} }
/*
$storage->storeProcess($bp);
$modifications = $this->session->get('modifications', array());
$node = $this->config->getNode($this->getValue('name'));
$node->setChildNames($this->getValue('children'));
$node->setOperator($this->getValue('operator'));
$modifications[$this->config->getName()] = $this->config->toLegacyConfigString();
$this->session->set('modifications', $modifications);
$message = 'Process %s has been modified';
Notification::success(sprintf($message, $this->config->getName()));
*/
} }
} }