Warning fix: defined but not used

view.c:2739: ‘icase_search_p’ defined but not used
    charsets.c:161: unused variable ‘obuflen’

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
This commit is contained in:
Mikhail S. Pobolovets 2009-05-08 13:30:32 +03:00
parent 3784f7253e
commit 906d25c5c8
2 changed files with 0 additions and 22 deletions

View File

@ -158,7 +158,6 @@ translate_character (GIConv cd, char c)
char ch = UNKNCHAR;
int ibuflen = 1;
int obuflen = 4;
tmp_buff = g_convert_with_iconv (ibuf, ibuflen, cd, &bytes_read, &bytes_written, NULL);
if ( tmp_buff )

View File

@ -2732,27 +2732,6 @@ my_define (Dlg_head *h, int idx, const char *text, void (*fn) (WView *),
/* {{{ Searching }}} */
/* Case insensitive search of text in data */
static int
icase_search_p (WView *view, char *text, char *data, int nothing,
size_t *match_start, size_t *match_end)
{
const char *q;
(void) nothing;
q = (!view->search_backwards)
? str_search_first (data, text, 0)
: str_search_last (data, text, 0);
if (q != NULL) {
(*match_start) = str_length_noncomb (data) - str_length_noncomb (q);
(*match_end) = (*match_start) + str_length_noncomb (text);
return 1;
}
return 0;
}
/* read one whole line into buffer, return where line start and end */
static int
view_get_line_at (WView *view, offset_type from, GString * buffer,