Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BRIC
dokuwiki
Commits
92a5d126
Commit
92a5d126
authored
12 years ago
by
Michael Hamann
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused variables
parent
91626c7f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inc/indexer.php
+0
-4
0 additions, 4 deletions
inc/indexer.php
inc/parserutils.php
+0
-1
0 additions, 1 deletion
inc/parserutils.php
with
0 additions
and
5 deletions
inc/indexer.php
+
0
−
4
View file @
92a5d126
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
inc/parserutils.php
+
0
−
1
View file @
92a5d126
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment