@@ -198,14 +198,6 @@ final public function getParameterId(string $name): string
198198 }
199199
200200
201- /** @deprecated */
202- final public function getParam ($ name = null , $ default = null )
203- {
204- trigger_error (__METHOD__ . '() is deprecated; use getParameter() or getParameters() instead. ' , E_USER_DEPRECATED );
205- return func_num_args () ? $ this ->getParameter ($ name , $ default ) : $ this ->getParameters ();
206- }
207-
208-
209201 /********************* interface ISignalReceiver ****************d*g**/
210202
211203
@@ -286,21 +278,11 @@ public function isLinkCurrent(string $destination = null, $args = []): bool
286278 * @param array|mixed $args
287279 * @throws Nette\Application\AbortException
288280 */
289- public function redirect (/*int $code, string */ $ destination , $ args = []): void
281+ public function redirect ($ destination , $ args = []): void
290282 {
291- if (is_numeric ($ destination )) {
292- trigger_error (__METHOD__ . '() first parameter $code is deprecated; use redirectPermanent() for 301 redirect. ' , E_USER_DEPRECATED );
293- [$ code , $ destination , $ args ] = func_get_args () + [null , null , []];
294- if (func_num_args () > 3 || !is_array ($ args )) {
295- $ args = array_slice (func_get_args (), 2 );
296- }
297- } else {
298- $ code = null ;
299- $ args = func_num_args () < 3 && is_array ($ args ) ? $ args : array_slice (func_get_args (), 1 );
300- }
301-
283+ $ args = func_num_args () < 3 && is_array ($ args ) ? $ args : array_slice (func_get_args (), 1 );
302284 $ presenter = $ this ->getPresenter ();
303- $ presenter ->redirectUrl ($ presenter ->createRequest ($ this , $ destination , $ args , 'redirect ' ), $ code );
285+ $ presenter ->redirectUrl ($ presenter ->createRequest ($ this , $ destination , $ args , 'redirect ' ));
304286 }
305287
306288
0 commit comments