From 37150c1f2ea6bc98a7cd3d49e30a84c27591c488 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 16 Mar 2015 13:10:55 +0100 Subject: [PATCH] BpConfigForm: remove legacy code --- application/forms/BpConfigForm.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/application/forms/BpConfigForm.php b/application/forms/BpConfigForm.php index c89d232..4029cd2 100644 --- a/application/forms/BpConfigForm.php +++ b/application/forms/BpConfigForm.php @@ -23,8 +23,6 @@ class BpConfigForm extends Form protected $processList = array(); - protected $session; - public function setup() { $this->addElement('text', 'name', array( @@ -74,12 +72,6 @@ class BpConfigForm extends Form return array_combine($keys, $keys); } - public function XXsetBackend($backend) - { - $this->backend = $backend; - return $this; - } - public function setStorage($storage) { $this->storage = $storage; @@ -110,12 +102,6 @@ class BpConfigForm extends Form return $this; } - public function setSession($session) - { - $this->session = $session; - return $this; - } - public function onSuccess() { $name = $this->getValue('name'); @@ -149,16 +135,5 @@ class BpConfigForm extends Form } else { 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())); -*/ } }