From: <var...@us...> - 2021-08-03 11:09:55
|
Revision: 10413 http://sourceforge.net/p/phpwiki/code/10413 Author: vargenau Date: 2021-08-03 11:09:52 +0000 (Tue, 03 Aug 2021) Log Message: ----------- Remove unused class WikiAnonymousCb Modified Paths: -------------- trunk/lib/WikiCallback.php Modified: trunk/lib/WikiCallback.php =================================================================== --- trunk/lib/WikiCallback.php 2021-07-30 16:48:02 UTC (rev 10412) +++ trunk/lib/WikiCallback.php 2021-08-03 11:09:52 UTC (rev 10413) @@ -118,31 +118,3 @@ return array($this->object, $this->methodName); } } - -/** - * Anonymous function callback. - */ -class WikiAnonymousCb - extends WikiCallback -{ - /** - * @param string $args Argument declarations - * @param string $code Function body - * @see create_function(). - */ - function __construct($args, $code) - { - $this->function = create_function($args, $code); - } - - function call_array($args) - { - return call_user_func_array($this->function, $args); - } - - function toPearCb() - { - trigger_error("Can't convert WikiAnonymousCb to Pear callback", - E_USER_ERROR); - } -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |