From d2210a2e79de0fece1d426a5ca71e6d38ab19eb4 Mon Sep 17 00:00:00 2001 From: Bernhard Schussek Date: Sat, 19 Mar 2011 15:09:11 +0100 Subject: [PATCH] [Form] Removed unused Form::isCsrfTokenValid() --- src/Symfony/Component/Form/Form.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/Symfony/Component/Form/Form.php b/src/Symfony/Component/Form/Form.php index ce20edd4aa..649746494a 100644 --- a/src/Symfony/Component/Form/Form.php +++ b/src/Symfony/Component/Form/Form.php @@ -308,22 +308,6 @@ class Form extends Field implements \IteratorAggregate, FormInterface return count($this->fields); } - /** - * Returns whether the CSRF token is valid - * - * @return Boolean - */ - public function isCsrfTokenValid() - { - if (!$this->isCsrfProtected()) { - return true; - } else { - $token = $this->get($this->csrfFieldName)->getClientData(); - - return $this->csrfProvider->isCsrfTokenValid(get_class($this), $token); - } - } - /** * Binds a request to the form *