Deletes the broken_spanner_index function, which did the same thing.
void add_bound_item (Spanner *, Grob *);
bool spanner_less (Spanner *s1, Spanner *s2);
-int broken_spanner_index (Spanner const *sp);
#endif
if (!original_)
return 0;
- vsize k = broken_spanner_index (this);
+ vsize k = get_break_index ();
Spanner *orig = dynamic_cast<Spanner*> (original_);
int j = int (k) + d;
if (j < 0 || vsize (j) >= orig->broken_intos_.size ())
return SCM_UNSPECIFIED;
}
-/*
- Return I such that SP == SP->ORIGINAL ()->BROKEN_INTOS_[I].
-*/
-int
-broken_spanner_index (Spanner const *sp)
-{
- Spanner *parent = dynamic_cast<Spanner *> (sp->original ());
- /* ugh: casting */
- return find (parent->broken_intos_, (Spanner*) sp) - parent->broken_intos_.begin ();
-}
-
Spanner *
unsmob_spanner (SCM s)
{