1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

[spidermonkey] Removed commented code

This commit is contained in:
Witold Filipczyk 2022-09-04 15:07:27 +02:00
parent ee08d50b8a
commit feb8340c05
2 changed files with 0 additions and 34 deletions

View File

@ -286,26 +286,6 @@ form_set_items(JSContext *ctx, JS::HandleObject hobj, void *node)
}
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;
struct el_form_control *fc;
foreach (fc, form->items) {

View File

@ -171,20 +171,6 @@ forms_set_items(JSContext *ctx, JS::HandleObject hobj, void *node)
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;
}