From 92a5d12663ce0d2371a16a0b894f9796f020146c Mon Sep 17 00:00:00 2001 From: Michael Hamann <michael@content-space.de> Date: Sat, 28 Jul 2012 10:49:13 +0200 Subject: [PATCH] Remove unused variables --- inc/indexer.php | 4 ---- inc/parserutils.php | 1 - 2 files changed, 5 deletions(-) diff --git a/inc/indexer.php b/inc/indexer.php index d3a10f7ad..d8768d3ab 100644 --- a/inc/indexer.php +++ b/inc/indexer.php @@ -65,7 +65,6 @@ define('IDX_ASIAN', '(?:'.IDX_ASIAN1.'|'.IDX_ASIAN2.'|'.IDX_ASIAN3.')'); function idx_get_version(){ static $indexer_version = null; if ($indexer_version == null) { - global $conf; $version = INDEXER_VERSION; // DokuWiki version is included for the convenience of plugins @@ -192,7 +191,6 @@ class Doku_Indexer { * @author Tom N Harris <tnharris@whoopdedo.org> */ protected function getPageWords($text) { - global $conf; $tokens = $this->tokenizer($text); $tokens = array_count_values($tokens); // count the frequency of each token @@ -415,8 +413,6 @@ class Doku_Indexer { * @author Andreas Gohr <andi@splitbrain.org> */ public function tokenizer($text, $wc=false) { - global $conf; - $words = array(); $wc = ($wc) ? '' : '\*'; $stopwords =& idx_get_stopwords(); diff --git a/inc/parserutils.php b/inc/parserutils.php index 9f5473d47..f182b84c4 100644 --- a/inc/parserutils.php +++ b/inc/parserutils.php @@ -206,7 +206,6 @@ function p_cached_output($file, $format='xhtml', $id='') { * @author Andreas Gohr <andi@splitbrain.org> */ function p_cached_instructions($file,$cacheonly=false,$id='') { - global $conf; static $run = null; if(is_null($run)) $run = array(); -- GitLab