summaryrefslogtreecommitdiff
path: root/cgi-bin/help-index.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgi-bin/help-index.c')
-rw-r--r--cgi-bin/help-index.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/cgi-bin/help-index.c b/cgi-bin/help-index.c
index 5f76d7aa5..a49536d6a 100644
--- a/cgi-bin/help-index.c
+++ b/cgi-bin/help-index.c
@@ -150,8 +150,6 @@ helpDeleteIndex(help_index_t *hi) /* I - Help index */
help_node_t *node; /* Current node */
- DEBUG_printf(("helpDeleteIndex(hi=%p)", hi));
-
if (!hi)
return;
@@ -182,9 +180,6 @@ helpFindNode(help_index_t *hi, /* I - Index */
help_node_t key; /* Search key */
- DEBUG_printf(("helpFindNode(hi=%p, filename=\"%s\", anchor=\"%s\")",
- hi, filename, anchor));
-
/*
* Range check input...
*/
@@ -232,9 +227,6 @@ helpLoadIndex(const char *hifile, /* I - Index filename */
help_word_t *word; /* Current word */
- DEBUG_printf(("helpLoadIndex(hifile=\"%s\", directory=\"%s\")",
- hifile, directory));
-
/*
* Create a new, empty index.
*/
@@ -437,8 +429,6 @@ helpSaveIndex(help_index_t *hi, /* I - Index */
help_word_t *word; /* Current word */
- DEBUG_printf(("helpSaveIndex(hi=%p, hifile=\"%s\")", hi, hifile));
-
/*
* Try creating a new index file...
*/
@@ -518,9 +508,6 @@ helpSearchIndex(help_index_t *hi, /* I - Index */
int matches; /* Number of matches */
- DEBUG_printf(("helpSearchIndex(hi=%p, query=\"%s\", filename=\"%s\")",
- hi, query, filename));
-
/*
* Range check...
*/
@@ -642,8 +629,6 @@ help_add_word(help_node_t *n, /* I - Node */
key; /* Search key */
- DEBUG_printf(("2help_add_word(n=%p, text=\"%s\")", n, text));
-
/*
* Create the words array as needed...
*/
@@ -695,8 +680,6 @@ help_delete_node(help_node_t *n) /* I - Node */
help_word_t *w; /* Current word */
- DEBUG_printf(("2help_delete_node(n=%p)", n));
-
if (!n)
return;
@@ -730,8 +713,6 @@ help_delete_node(help_node_t *n) /* I - Node */
static void
help_delete_word(help_word_t *w) /* I - Word */
{
- DEBUG_printf(("2help_delete_word(w=%p)", w));
-
if (!w)
return;
@@ -761,9 +742,6 @@ help_load_directory(
help_node_t *node; /* Current node */
- DEBUG_printf(("2help_load_directory(hi=%p, directory=\"%s\", relative=\"%s\")",
- hi, directory, relative));
-
/*
* Open the directory and scan it...
*/
@@ -873,9 +851,6 @@ help_load_file(
int wordlen; /* Length of word */
- DEBUG_printf(("2help_load_file(hi=%p, filename=\"%s\", relative=\"%s\", "
- "mtime=%ld)", hi, filename, relative, (long)mtime));
-
if ((fp = cupsFileOpen(filename, "r")) == NULL)
return (-1);
@@ -1207,10 +1182,6 @@ help_new_node(const char *filename, /* I - Filename */
help_node_t *n; /* Node */
- DEBUG_printf(("2help_new_node(filename=\"%s\", anchor=\"%s\", text=\"%s\", "
- "mtime=%ld, offset=%ld, length=%ld)", filename, anchor, text,
- (long)mtime, (long)offset, (long)length));
-
n = (help_node_t *)calloc(1, sizeof(help_node_t));
if (!n)
return (NULL);
@@ -1238,10 +1209,6 @@ help_sort_by_name(help_node_t *n1, /* I - First node */
int diff; /* Difference */
- DEBUG_printf(("2help_sort_by_name(n1=%p(%s#%s), n2=%p(%s#%s)",
- n1, n1->filename, n1->anchor,
- n2, n2->filename, n2->anchor));
-
if ((diff = strcmp(n1->filename, n2->filename)) != 0)
return (diff);
@@ -1267,11 +1234,6 @@ help_sort_by_score(help_node_t *n1, /* I - First node */
int diff; /* Difference */
- DEBUG_printf(("2help_sort_by_score(n1=%p(%d \"%s\" \"%s\"), "
- "n2=%p(%d \"%s\" \"%s\")",
- n1, n1->score, n1->section, n1->text,
- n2, n2->score, n2->section, n2->text));
-
if (n1->score != n2->score)
return (n2->score - n1->score);
@@ -1295,8 +1257,5 @@ static int /* O - Difference */
help_sort_words(help_word_t *w1, /* I - Second word */
help_word_t *w2) /* I - Second word */
{
- DEBUG_printf(("2help_sort_words(w1=%p(\"%s\"), w2=%p(\"%s\"))",
- w1, w1->text, w2, w2->text));
-
return (_cups_strcasecmp(w1->text, w2->text));
}