mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Remove variables that were set but not used
Required to make new gcc with default warning settings happy.
This commit is contained in:
parent
69a226eba1
commit
9a001f051a
@ -90,7 +90,6 @@ render_dom_document(struct cache_entry *cached, struct document *document,
|
|||||||
unsigned char *string = struri(cached->uri);
|
unsigned char *string = struri(cached->uri);
|
||||||
size_t length = strlen(string);
|
size_t length = strlen(string);
|
||||||
struct dom_string uri = INIT_DOM_STRING(string, length);
|
struct dom_string uri = INIT_DOM_STRING(string, length);
|
||||||
enum dom_code code;
|
|
||||||
|
|
||||||
convert_table = get_convert_table(head, document->options.cp,
|
convert_table = get_convert_table(head, document->options.cp,
|
||||||
document->options.assume_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
|
* However, it will be useful when we will be able to also
|
||||||
* incrementally parse new data. This will require the parser to live
|
* incrementally parse new data. This will require the parser to live
|
||||||
* during the fetching of data. */
|
* 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) {
|
if (parser->root) {
|
||||||
assert(parser->stack.depth == 1);
|
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_stack_state *state = get_dom_stack_top(&select_data->stack);
|
||||||
struct dom_select_node *selector = (void *) state->node;
|
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_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);
|
WDBG("Text node: %d chars", node->string.length);
|
||||||
|
|
||||||
if (!text_sel)
|
if (!text_sel)
|
||||||
return DOM_CODE_OK;
|
return DOM_CODE_OK;
|
||||||
|
|
||||||
text = &text_sel->node.string;
|
|
||||||
|
|
||||||
switch (node->type) {
|
switch (node->type) {
|
||||||
case DOM_NODE_TEXT:
|
case DOM_NODE_TEXT:
|
||||||
case DOM_NODE_CDATA_SECTION:
|
case DOM_NODE_CDATA_SECTION:
|
||||||
|
@ -273,15 +273,11 @@ static void
|
|||||||
add_header_to_string(struct string *str, unsigned char *header)
|
add_header_to_string(struct string *str, unsigned char *header)
|
||||||
{
|
{
|
||||||
unsigned char *end;
|
unsigned char *end;
|
||||||
int rfc2047 = 0;
|
|
||||||
|
|
||||||
while ((end = strstr(header, "=?")) != NULL) {
|
while ((end = strstr(header, "=?")) != NULL) {
|
||||||
int encoding;
|
int encoding;
|
||||||
unsigned char charset_q[256];
|
|
||||||
unsigned char *cp, *sp;
|
unsigned char *cp, *sp;
|
||||||
|
|
||||||
rfc2047 = 1;
|
|
||||||
|
|
||||||
if (header != end) {
|
if (header != end) {
|
||||||
add_html_to_string(str, header, end - header);
|
add_html_to_string(str, header, end - header);
|
||||||
header = end;
|
header = end;
|
||||||
@ -297,8 +293,7 @@ add_header_to_string(struct string *str, unsigned char *header)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
for (sp = end; sp < cp; sp++)
|
for (sp = end; sp < cp; sp++)
|
||||||
charset_q[sp - end] = c_tolower(*sp);
|
/* charset */;
|
||||||
charset_q[cp - end] = 0;
|
|
||||||
encoding = c_tolower(cp[1]);
|
encoding = c_tolower(cp[1]);
|
||||||
|
|
||||||
if (!encoding || cp[2] != '?')
|
if (!encoding || cp[2] != '?')
|
||||||
|
@ -421,7 +421,6 @@ draw_form_entry(struct terminal *term, struct document_view *doc_view,
|
|||||||
unsigned char *s;
|
unsigned char *s;
|
||||||
#ifdef CONFIG_UTF8
|
#ifdef CONFIG_UTF8
|
||||||
unsigned char *text, *end, *last_in_view;
|
unsigned char *text, *end, *last_in_view;
|
||||||
int retried;
|
|
||||||
#endif /* CONFIG_UTF8 */
|
#endif /* CONFIG_UTF8 */
|
||||||
int len;
|
int len;
|
||||||
int i, x, y;
|
int i, x, y;
|
||||||
@ -458,7 +457,6 @@ draw_form_entry(struct terminal *term, struct document_view *doc_view,
|
|||||||
break;
|
break;
|
||||||
#ifdef CONFIG_UTF8
|
#ifdef CONFIG_UTF8
|
||||||
utf8:
|
utf8:
|
||||||
retried = 0;
|
|
||||||
|
|
||||||
retry_after_scroll:
|
retry_after_scroll:
|
||||||
text = fs->value;
|
text = fs->value;
|
||||||
@ -568,7 +566,6 @@ drew_char:
|
|||||||
|
|
||||||
if (fs->vpos != ptr - fs->value) {
|
if (fs->vpos != ptr - fs->value) {
|
||||||
fs->vpos = ptr - fs->value;
|
fs->vpos = ptr - fs->value;
|
||||||
retried = 1;
|
|
||||||
goto retry_after_scroll;
|
goto retry_after_scroll;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user