mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
Remove variables that were set but not used
Required to make new gcc with default warning settings happy.
(cherry picked from commit 9a001f051a
)
This commit is contained in:
parent
bc254b6079
commit
15f422e91d
@ -1035,7 +1035,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,
|
||||
@ -1074,7 +1073,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);
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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] != '?')
|
||||
|
@ -409,7 +409,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;
|
||||
@ -446,7 +445,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;
|
||||
@ -556,7 +554,6 @@ drew_char:
|
||||
|
||||
if (fs->vpos != ptr - fs->value) {
|
||||
fs->vpos = ptr - fs->value;
|
||||
retried = 1;
|
||||
goto retry_after_scroll;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user