mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[spidermonkey] Empty finalizers
This commit is contained in:
parent
fe90abbaec
commit
c3edadc2d9
@ -207,6 +207,8 @@ elements_finalize(JS::GCContext *op, JSObject *obj)
|
||||
#ifdef ECMASCRIPT_DEBUG
|
||||
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
struct form_view *fv = JS::GetMaybePtrFromReservedSlot<struct form_view>(obj, 0);
|
||||
|
||||
if (fv) {
|
||||
@ -221,6 +223,7 @@ elements_finalize(JS::GCContext *op, JSObject *obj)
|
||||
/* No need to JS::SetPrivate, because the object is
|
||||
* being destroyed. */
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static bool
|
||||
@ -1391,6 +1394,8 @@ form_finalize(JS::GCContext *op, JSObject *jsform)
|
||||
#ifdef ECMASCRIPT_DEBUG
|
||||
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
struct form *form = JS::GetMaybePtrFromReservedSlot<struct form>(jsform, 0);
|
||||
|
||||
if (form) {
|
||||
@ -1398,6 +1403,7 @@ form_finalize(JS::GCContext *op, JSObject *jsform)
|
||||
/* No need to JS::SetPrivate, because the object is
|
||||
* being destroyed. */
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1824,13 +1824,7 @@ get_input_object(JSContext *ctx, struct form_state *fs)
|
||||
#ifdef ECMASCRIPT_DEBUG
|
||||
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||
#endif
|
||||
|
||||
JSObject *jsinput = (JSObject *)fs->ecmascript_obj;
|
||||
|
||||
if (jsinput) {
|
||||
return jsinput;
|
||||
}
|
||||
|
||||
JSObject *jsinput;
|
||||
/* jsform ('form') is input's parent */
|
||||
/* FIXME: That is NOT correct since the real containing element
|
||||
* should be its parent, but gimme DOM first. --pasky */
|
||||
@ -1855,6 +1849,7 @@ input_finalize(JS::GCContext *op, JSObject *jsinput)
|
||||
#ifdef ECMASCRIPT_DEBUG
|
||||
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||
#endif
|
||||
#if 0
|
||||
struct form_state *fs = JS::GetMaybePtrFromReservedSlot<struct form_state>(jsinput, 0);
|
||||
|
||||
if (fs) {
|
||||
@ -1862,4 +1857,5 @@ input_finalize(JS::GCContext *op, JSObject *jsinput)
|
||||
/* No need to JS::SetPrivate, because jsinput is being
|
||||
* destroyed. */
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user