- Lauri
>From 1578a95c0ed49ede399f15395f3d2c5f2dfeb341 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen <[email protected]> Date: Mon, 21 May 2012 19:56:32 +0300 Subject: [PATCH 3/8] dirlisting: Remove two unused functions
Signed-off-by: Lauri Kasanen <[email protected]> --- plugins/dirlisting/dirlisting.c | 39 --------------------------------------- 1 files changed, 0 insertions(+), 39 deletions(-) diff --git a/plugins/dirlisting/dirlisting.c b/plugins/dirlisting/dirlisting.c index da5b64e..14a9bba 100644 --- a/plugins/dirlisting/dirlisting.c +++ b/plugins/dirlisting/dirlisting.c @@ -333,33 +333,6 @@ static int mk_dirhtml_theme_match_tag(char *content, char *tpl[]) return -1; } -/* return the number of valid tags found in text string */ -static int mk_dirhtml_content_count_tags(char *content, char *tpl[]) -{ - int pos = 0, count = 0; - int len, tpl_idx; - int loop = 0; - - len = strlen(content); - while (loop < len) { - pos = mk_api->str_search(content + loop, MK_DIRHTML_TAG_INIT, MK_STR_INSENSITIVE); - - if (pos >= 0) { - tpl_idx = mk_dirhtml_theme_match_tag(content + loop, tpl); - if (tpl_idx >= 0) { - count++; - } - loop += pos; - } - else { - break; - } - loop++; - - } - return count; -} - struct dirhtml_template *mk_dirhtml_template_create(char *content) { int i = 0, cont_len; @@ -470,18 +443,6 @@ struct dirhtml_template *mk_dirhtml_template_list_add(struct dirhtml_template ** return (struct dirhtml_template *) node; } -static int mk_dirhtml_tag_get_id(char *tpl_tags[], char *tag) -{ - int i; - for (i = 0; tpl_tags[i]; i++) { - if (strcmp(tpl_tags[i], tag) == 0) { - return i; - } - } - - return -1; -} - static int mk_dirhtml_template_len(struct dirhtml_template *tpl) { int len = 0; -- 1.7.2.1
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
