浏览代码

[Form] Removed unused Form::isCsrfTokenValid()

Bernhard Schussek 14 年之前
父节点
当前提交
d2210a2e79
共有 1 个文件被更改,包括 0 次插入16 次删除
  1. 0 16
      src/Symfony/Component/Form/Form.php

+ 0 - 16
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
      *