Skip to content
Snippets Groups Projects
Commit 92a5d126 authored by Michael Hamann's avatar Michael Hamann
Browse files

Remove unused variables

parent 91626c7f
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,6 @@ define('IDX_ASIAN', '(?:'.IDX_ASIAN1.'|'.IDX_ASIAN2.'|'.IDX_ASIAN3.')'); ...@@ -65,7 +65,6 @@ define('IDX_ASIAN', '(?:'.IDX_ASIAN1.'|'.IDX_ASIAN2.'|'.IDX_ASIAN3.')');
function idx_get_version(){ function idx_get_version(){
static $indexer_version = null; static $indexer_version = null;
if ($indexer_version == null) { if ($indexer_version == null) {
global $conf;
$version = INDEXER_VERSION; $version = INDEXER_VERSION;
// DokuWiki version is included for the convenience of plugins // DokuWiki version is included for the convenience of plugins
...@@ -192,7 +191,6 @@ class Doku_Indexer { ...@@ -192,7 +191,6 @@ class Doku_Indexer {
* @author Tom N Harris <tnharris@whoopdedo.org> * @author Tom N Harris <tnharris@whoopdedo.org>
*/ */
protected function getPageWords($text) { protected function getPageWords($text) {
global $conf;
$tokens = $this->tokenizer($text); $tokens = $this->tokenizer($text);
$tokens = array_count_values($tokens); // count the frequency of each token $tokens = array_count_values($tokens); // count the frequency of each token
...@@ -415,8 +413,6 @@ class Doku_Indexer { ...@@ -415,8 +413,6 @@ class Doku_Indexer {
* @author Andreas Gohr <andi@splitbrain.org> * @author Andreas Gohr <andi@splitbrain.org>
*/ */
public function tokenizer($text, $wc=false) { public function tokenizer($text, $wc=false) {
global $conf;
$words = array();
$wc = ($wc) ? '' : '\*'; $wc = ($wc) ? '' : '\*';
$stopwords =& idx_get_stopwords(); $stopwords =& idx_get_stopwords();
......
...@@ -206,7 +206,6 @@ function p_cached_output($file, $format='xhtml', $id='') { ...@@ -206,7 +206,6 @@ function p_cached_output($file, $format='xhtml', $id='') {
* @author Andreas Gohr <andi@splitbrain.org> * @author Andreas Gohr <andi@splitbrain.org>
*/ */
function p_cached_instructions($file,$cacheonly=false,$id='') { function p_cached_instructions($file,$cacheonly=false,$id='') {
global $conf;
static $run = null; static $run = null;
if(is_null($run)) $run = array(); if(is_null($run)) $run = array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment