1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-14 05:53:36 -04:00

Remove variables that were set but not used

Required to make new gcc with default warning settings happy.
This commit is contained in:
Petr Baudis 2011-09-24 02:25:51 +02:00
parent 69a226eba1
commit 9a001f051a
4 changed files with 2 additions and 14 deletions

View File

@ -90,7 +90,6 @@ render_dom_document(struct cache_entry *cached, struct document *document,
unsigned char *string = struri(cached->uri);
size_t length = strlen(string);
struct dom_string uri = INIT_DOM_STRING(string, length);
enum dom_code code;
convert_table = get_convert_table(head, document->options.cp,
document->options.assume_cp,
@ -129,7 +128,7 @@ render_dom_document(struct cache_entry *cached, struct document *document,
* However, it will be useful when we will be able to also
* incrementally parse new data. This will require the parser to live
* during the fetching of data. */
code = parse_sgml(parser, buffer->source, buffer->length, 1);
parse_sgml(parser, buffer->source, buffer->length, 1);
if (parser->root) {
assert(parser->stack.depth == 1);

View File

@ -961,15 +961,12 @@ dom_select_push_text(struct dom_stack *stack, struct dom_node *node, void *data)
struct dom_stack_state *state = get_dom_stack_top(&select_data->stack);
struct dom_select_node *selector = (void *) state->node;
struct dom_select_node *text_sel = get_child_dom_select_node(selector, DOM_NODE_TEXT);
struct dom_string *text;
WDBG("Text node: %d chars", node->string.length);
if (!text_sel)
return DOM_CODE_OK;
text = &text_sel->node.string;
switch (node->type) {
case DOM_NODE_TEXT:
case DOM_NODE_CDATA_SECTION:

View File

@ -273,15 +273,11 @@ static void
add_header_to_string(struct string *str, unsigned char *header)
{
unsigned char *end;
int rfc2047 = 0;
while ((end = strstr(header, "=?")) != NULL) {
int encoding;
unsigned char charset_q[256];
unsigned char *cp, *sp;
rfc2047 = 1;
if (header != end) {
add_html_to_string(str, header, end - header);
header = end;
@ -297,8 +293,7 @@ add_header_to_string(struct string *str, unsigned char *header)
break;
for (sp = end; sp < cp; sp++)
charset_q[sp - end] = c_tolower(*sp);
charset_q[cp - end] = 0;
/* charset */;
encoding = c_tolower(cp[1]);
if (!encoding || cp[2] != '?')

View File

@ -421,7 +421,6 @@ draw_form_entry(struct terminal *term, struct document_view *doc_view,
unsigned char *s;
#ifdef CONFIG_UTF8
unsigned char *text, *end, *last_in_view;
int retried;
#endif /* CONFIG_UTF8 */
int len;
int i, x, y;
@ -458,7 +457,6 @@ draw_form_entry(struct terminal *term, struct document_view *doc_view,
break;
#ifdef CONFIG_UTF8
utf8:
retried = 0;
retry_after_scroll:
text = fs->value;
@ -568,7 +566,6 @@ drew_char:
if (fs->vpos != ptr - fs->value) {
fs->vpos = ptr - fs->value;
retried = 1;
goto retry_after_scroll;
}
}