From: <var...@us...> - 2014-10-07 08:06:04
|
Revision: 9206 http://sourceforge.net/p/phpwiki/code/9206 Author: vargenau Date: 2014-10-07 08:05:55 +0000 (Tue, 07 Oct 2014) Log Message: ----------- Remove unused function explodeList Modified Paths: -------------- trunk/lib/PageList.php trunk/lib/stdlib.php Modified: trunk/lib/PageList.php =================================================================== --- trunk/lib/PageList.php 2014-10-07 07:54:52 UTC (rev 9205) +++ trunk/lib/PageList.php 2014-10-07 08:05:55 UTC (rev 9206) @@ -1112,8 +1112,6 @@ * Test* or Test1,Test2 * Limitation: Doesn't split into comma-sep and then expand wildcards. * "Test1*,Test2*" is expanded into TextSearch "Test1* Test2*" - * - * echo implode(":",explodeList("Test*",array("xx","Test1","Test2"))); */ function explodePageList($input, $include_empty = false, $sortby = '', $limit = '', $exclude = '') Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2014-10-07 07:54:52 UTC (rev 9205) +++ trunk/lib/stdlib.php 2014-10-07 08:05:55 UTC (rev 9206) @@ -61,7 +61,6 @@ glob_to_pcre ($glob) glob_match ($glob, $against, $case_sensitive = true) - explodeList ($input, $allnames, $glob_style = true, $case_sensitive = true) explodePageList ($input, $perm = false) isa ($object, $class) can ($object, $method) @@ -1512,27 +1511,6 @@ $against); } -function explodeList($input, $allnames, $glob_style = true, $case_sensitive = true) -{ - $list = explode(',', $input); - // expand wildcards from list of $allnames - if (preg_match('/[\?\*]/', $input)) { - // Optimizing loop invariants: - // http://phplens.com/lens/php-book/optimizing-debugging-php.php - for ($i = 0, $max = sizeof($list); $i < $max; $i++) { - $f = $list[$i]; - if (preg_match('/[\?\*]/', $f)) { - reset($allnames); - $expand = new ListRegexExpand($list, - $glob_style ? glob_to_pcre($f) : $f, $case_sensitive); - $expand->expandRegex($i, $allnames); - } - } - } - return $list; -} - -// echo implode(":",explodeList("Test*",array("xx","Test1","Test2"))); function explodePageList($input, $include_empty = false, $sortby = 'pagename', $limit = '', $exclude = '') { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |