Remove scm_assert_bound
* libguile/goops.c (scm_assert_bound): Remove unexported unused helper. * module/oop/goops.scm (make-generic-bound-check-getter): Change assert-bound use to use `unbound?'.
This commit is contained in:
parent
6a201bc4dd
commit
984d43b632
2 changed files with 5 additions and 14 deletions
|
|
@ -175,7 +175,6 @@ SCM scm_i_smob_class[SCM_I_MAX_SMOB_TYPE_COUNT];
|
|||
|
||||
static SCM scm_make_unbound (void);
|
||||
static SCM scm_unbound_p (SCM obj);
|
||||
static SCM scm_assert_bound (SCM value, SCM obj);
|
||||
static SCM scm_sys_bless_applicable_struct_vtables_x (SCM applicable,
|
||||
SCM setter);
|
||||
static SCM scm_sys_bless_pure_generic_vtable_x (SCM vtable);
|
||||
|
|
@ -717,18 +716,6 @@ SCM_DEFINE (scm_unbound_p, "unbound?", 1, 0, 0,
|
|||
}
|
||||
#undef FUNC_NAME
|
||||
|
||||
SCM_DEFINE (scm_assert_bound, "assert-bound", 2, 0, 0,
|
||||
(SCM value, SCM obj),
|
||||
"Return @var{value} if it is bound, and invoke the\n"
|
||||
"@var{slot-unbound} method of @var{obj} if it is not.")
|
||||
#define FUNC_NAME s_scm_assert_bound
|
||||
{
|
||||
if (SCM_GOOPS_UNBOUNDP (value))
|
||||
return scm_call_1 (SCM_VARIABLE_REF (var_slot_unbound), obj);
|
||||
return value;
|
||||
}
|
||||
#undef FUNC_NAME
|
||||
|
||||
|
||||
|
||||
/** Utilities **/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue