Permalink
Browse files

Remove deprecated security token methods on Form

Use SecurityToken class directly instead
  • Loading branch information...
halkyon committed Nov 14, 2012
1 parent 6382013 commit b43b023c1e22b8d4e0cc57a062eef43b8fc91867
Showing with 0 additions and 28 deletions.
  1. +0 −28 forms/Form.php
View
@@ -1295,34 +1295,6 @@ public function enableSecurityToken() {
return $this;
}
- /**
- * Disable security tokens for every form.
- * Note that this doesn't apply to {@link SecurityToken}
- * instances outside of the Form class, nor applies
- * to existing form instances.
- *
- * See {@link enable_all_security_tokens()}.
- *
- * @deprecated 2.5 Use SecurityToken::disable()
- */
- public static function disable_all_security_tokens() {
- Deprecation::notice('2.5', 'Use SecurityToken::disable() instead.');
- SecurityToken::disable();
- }
-
- /**
- * Returns true if security is enabled - that is if the security token
- * should be included and checked on this form.
- *
- * @deprecated 2.5 Use Form->getSecurityToken()->isEnabled()
- *
- * @return bool
- */
- public function securityTokenEnabled() {
- Deprecation::notice('2.5', 'Use Form->getSecurityToken()->isEnabled() instead.');
- return $this->securityToken->isEnabled();
- }
-
/**
* Returns the security token for this form (if any exists).
* Doesn't check for {@link securityTokenEnabled()}.

0 comments on commit b43b023

Please sign in to comment.