Skip to content

Commit 6d192c2

Browse files
committed
removed stuff strongly deprecated in 2.3
1 parent ece128d commit 6d192c2

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

src/Bridges/FormsLatte/FormMacros.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static function install(Latte\Compiler $compiler)
3636
$me->addMacro('form', [$me, 'macroForm'], 'echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd($_form)');
3737
$me->addMacro('formContainer', [$me, 'macroFormContainer'], '$formContainer = $_form = array_pop($_formStack)');
3838
$me->addMacro('label', [$me, 'macroLabel'], [$me, 'macroLabelEnd']);
39-
$me->addMacro('input', [$me, 'macroInput'], NULL, [$me, 'macroInputAttr']);
39+
$me->addMacro('input', [$me, 'macroInput']);
4040
$me->addMacro('name', [$me, 'macroName'], [$me, 'macroNameEnd'], [$me, 'macroNameAttr']);
4141
$me->addMacro('inputError', [$me, 'macroInputError']);
4242
}
@@ -134,15 +134,6 @@ public function macroInput(MacroNode $node, PhpWriter $writer)
134134
}
135135

136136

137-
/**
138-
* deprecated n:input
139-
*/
140-
public function macroInputAttr(MacroNode $node, PhpWriter $writer)
141-
{
142-
throw new CompileException('Use n:name instead of n:input.');
143-
}
144-
145-
146137
/**
147138
* <form n:name>, <input n:name>, <select n:name>, <textarea n:name>, <label n:name> and <button n:name>
148139
*/

src/Forms/Controls/BaseControl.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -513,14 +513,6 @@ public function cleanErrors()
513513
}
514514

515515

516-
/** @deprecated */
517-
protected static function exportRules($rules)
518-
{
519-
trigger_error(__METHOD__ . '() is deprecated; use Nette\Forms\Helpers::exportRules() instead.', E_USER_DEPRECATED);
520-
return Nette\Forms\Helpers::exportRules($rules);
521-
}
522-
523-
524516
/********************* user data ****************d*g**/
525517

526518

tests/Forms.Latte/FormMacros.error.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ Assert::exception(function() use ($latte) {
3838
}, 'Latte\CompileException', 'Missing name in {formContainer}.');
3939

4040

41-
Assert::exception(function() use ($latte) {
42-
$latte->compile('<input n:input>');
43-
}, 'Latte\CompileException', 'Use n:name instead of n:input.');
44-
4541
Assert::exception(function() use ($latte) {
4642
$latte->compile('<html>{label /}');
4743
}, 'Latte\CompileException', 'Missing name in {label}.');

0 commit comments

Comments
 (0)