Skip to content

Commit 7d98a42

Browse files
committed
removed deprecated stuff
1 parent b0ed9af commit 7d98a42

File tree

4 files changed

+1
-25
lines changed

4 files changed

+1
-25
lines changed

src/Bridges/FormsLatte/FormMacros.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -239,20 +239,4 @@ public function macroInputError(MacroNode $node, PhpWriter $writer)
239239
}
240240
}
241241

242-
243-
/** @deprecated */
244-
public static function renderFormBegin(Form $form, array $attrs, $withTags = TRUE)
245-
{
246-
trigger_error(__METHOD__ . '() is deprecated, use Nette\Bridges\FormsLatte\Runtime::renderFormBegin()', E_USER_DEPRECATED);
247-
echo Runtime::renderFormBegin($form, $attrs, $withTags);
248-
}
249-
250-
251-
/** @deprecated */
252-
public static function renderFormEnd(Form $form, $withTags = TRUE)
253-
{
254-
trigger_error(__METHOD__ . '() is deprecated, use Nette\Bridges\FormsLatte\Runtime::renderFormEnd()', E_USER_DEPRECATED);
255-
echo Runtime::renderFormEnd($form, $withTags);
256-
}
257-
258242
}

src/Forms/Form.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ class Form extends Container implements Nette\Utils\IHtmlString
3434
REQUIRED = self::FILLED,
3535
VALID = ':valid';
3636

37-
/** @deprecated CSRF protection */
38-
const PROTECTION = Controls\CsrfProtection::PROTECTION;
39-
4037
// button
4138
const SUBMITTED = ':submitted';
4239

src/Forms/Rules.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ class Rules implements \IteratorAggregate
1919
{
2020
use Nette\SmartObject;
2121

22-
/** @deprecated */
23-
public static $defaultMessages;
24-
2522
/** @var Rule|FALSE|NULL */
2623
private $required;
2724

@@ -344,5 +341,3 @@ private static function getCallback($rule)
344341
}
345342

346343
}
347-
348-
Rules::$defaultMessages = & Validator::$messages;

src/Forms/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Validator
2323

2424
/** @var array */
2525
public static $messages = [
26-
Form::PROTECTION => 'Your session has expired. Please return to the home page and try again.',
26+
Controls\CsrfProtection::PROTECTION => 'Your session has expired. Please return to the home page and try again.',
2727
Form::EQUAL => 'Please enter %s.',
2828
Form::NOT_EQUAL => 'This value should not be %s.',
2929
Form::FILLED => 'This field is required.',

0 commit comments

Comments
 (0)