From fa2190050421db427c69f6e745f1593de9a8be40 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Wed, 23 Sep 2009 02:46:48 +0000 Subject: [PATCH] MINOR: removed code to reference the editor from the form field --- code/editor/EditableFormField.php | 26 +------------------------- code/editor/FieldEditor.php | 3 --- 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/code/editor/EditableFormField.php b/code/editor/EditableFormField.php index 9964e9d..ff66ca4 100755 --- a/code/editor/EditableFormField.php +++ b/code/editor/EditableFormField.php @@ -34,33 +34,9 @@ class EditableFormField extends DataObject { static $extensions = array( "Versioned('Stage', 'Live')" ); - - /** - * @var FieldEditor The current editor - */ - protected $editor; protected $readonly; - - /** - * Construct a new EditableFormField Object. - * - * @param array|null $record This will be null for a new database record. - * @param boolean $isSingleton This this to true if this is a singleton() object, a stub for calling methods. - */ - public function __construct($record = null, $isSingleton = false) { - parent::__construct($record, $isSingleton); - } - - /** - * Set the FieldEditor object for this field. - * - * @param FieldEditor The Editor window you wish to use - */ - public function setEditor($editor) { - $this->editor = $editor; - } - + /** * Set this formfield to readonly */ diff --git a/code/editor/FieldEditor.php b/code/editor/FieldEditor.php index 2cd3a76..c693d69 100755 --- a/code/editor/FieldEditor.php +++ b/code/editor/FieldEditor.php @@ -65,13 +65,10 @@ class FieldEditor extends FormField { $fields->push($field->performReadonlyTransformation()); } } - $field->setEditor($this); } } return $fields; - } - } /**