mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[spidermonkey] Removed commented code
This commit is contained in:
parent
ee08d50b8a
commit
feb8340c05
@ -286,26 +286,6 @@ form_set_items(JSContext *ctx, JS::HandleObject hobj, void *node)
|
|||||||
}
|
}
|
||||||
form = find_form_by_form_view(document, form_view);
|
form = find_form_by_form_view(document, form_view);
|
||||||
|
|
||||||
#if 0
|
|
||||||
if (JSID_IS_STRING(id)) {
|
|
||||||
JS::RootedValue r_idval(ctx, idval);
|
|
||||||
JS_IdToValue(ctx, id, &r_idval);
|
|
||||||
char *string = jsval_to_string(ctx, r_idval);
|
|
||||||
|
|
||||||
if (string) {
|
|
||||||
xmlpp::ustring test = string;
|
|
||||||
if (test == "item" || test == "namedItem") {
|
|
||||||
mem_free(string);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
form_elements_namedItem2(ctx, hobj, string, hvp);
|
|
||||||
mem_free(string);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
struct el_form_control *fc;
|
struct el_form_control *fc;
|
||||||
foreach (fc, form->items) {
|
foreach (fc, form->items) {
|
||||||
|
@ -171,20 +171,6 @@ forms_set_items(JSContext *ctx, JS::HandleObject hobj, void *node)
|
|||||||
counter++;
|
counter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
if (JSID_IS_STRING(hid)) {
|
|
||||||
char *string = jsid_to_string(ctx, hid);
|
|
||||||
xmlpp::ustring test = string;
|
|
||||||
|
|
||||||
if (test == "item" || test == "namedItem") {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
find_form_by_name(ctx, doc_view, string, hvp);
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user