1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[spidermonkey] unused variables

This commit is contained in:
Witold Filipczyk 2022-06-22 21:44:31 +02:00
parent 37afb1de72
commit 1f20379087
5 changed files with 0 additions and 7 deletions

View File

@ -1304,7 +1304,6 @@ document_write_do(JSContext *ctx, unsigned int argc, JS::Value *rval, int newlin
}
struct ecmascript_interpreter *interpreter = (struct ecmascript_interpreter *)JS::GetRealmPrivate(comp);
JS::Value val;
JS::CallArgs args = JS::CallArgsFromVp(argc, rval);
struct string code;

View File

@ -1316,7 +1316,6 @@ form_reset(JSContext *ctx, unsigned int argc, JS::Value *rval)
#ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
#endif
JS::Value val;
JS::RootedObject parent_doc(ctx); /* instance of @document_class */
JS::CallArgs args = JS::CallArgsFromVp(argc, rval);
JS::RootedObject hobj(ctx, &args.thisv().toObject());
@ -1363,7 +1362,6 @@ form_submit(JSContext *ctx, unsigned int argc, JS::Value *rval)
#ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
#endif
JS::Value val;
JS::RootedObject parent_doc(ctx); /* instance of @document_class */
JS::CallArgs args = JS::CallArgsFromVp(argc, rval);
JS::RootedObject hobj(ctx, &args.thisv().toObject());

View File

@ -46,7 +46,6 @@ implementation_createHTMLDocument(JSContext *ctx, unsigned int argc, JS::Value *
#ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
#endif
JS::Value val;
JS::RootedObject parent_doc(ctx); /* instance of @document_class */
JS::CallArgs args = JS::CallArgsFromVp(argc, rval);
JS::RootedObject hobj(ctx, &args.thisv().toObject());

View File

@ -1686,7 +1686,6 @@ input_click(JSContext *ctx, unsigned int argc, JS::Value *rval)
#ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
#endif
JS::Value val;
JS::RootedObject parent_form(ctx); /* instance of @form_class */
JS::RootedObject parent_doc(ctx); /* instance of @document_class */
JS::CallArgs args = JS::CallArgsFromVp(argc, rval);
@ -1756,7 +1755,6 @@ input_focus(JSContext *ctx, unsigned int argc, JS::Value *rval)
#ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
#endif
JS::Value val;
JS::RootedObject parent_form(ctx); /* instance of @form_class */
JS::RootedObject parent_doc(ctx); /* instance of @document_class */
JS::CallArgs args = JS::CallArgsFromVp(argc, rval);

View File

@ -159,7 +159,6 @@ window_alert(JSContext *ctx, unsigned int argc, JS::Value *rval)
#ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
#endif
JS::Value val;
JS::CallArgs args = JS::CallArgsFromVp(argc, rval);
// JS::RootedObject hobj(ctx, &args.thisv().toObject());