Remove mostly unused function.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20943 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-10-13 12:58:43 +00:00
parent 36e9a1fd30
commit 589170bd4b
4 changed files with 2 additions and 33 deletions

View File

@ -586,7 +586,7 @@ bool Text::checkAndActivateInset(Cursor & cur, bool front)
if (!front && cur.pos() == 0)
return false;
Inset * inset = front ? cur.nextInset() : cur.prevInset();
if (!isHighlyEditableInset(inset))
if (!inset || inset->editable() != Inset::HIGHLY_EDITABLE)
return false;
/*
* Apparently, when entering an inset we are expected to be positioned

View File

@ -369,20 +369,4 @@ void Inset::setDimCache(MetricsInfo const & mi, Dimension const & dim) const
mi.base.bv->coordCache().insets().add(this, dim);
}
/////////////////////////////////////////
bool isEditableInset(Inset const * inset)
{
return inset && inset->editable();
}
bool isHighlyEditableInset(Inset const * inset)
{
return inset && inset->editable() == Inset::HIGHLY_EDITABLE;
}
} // namespace lyx

View File

@ -409,21 +409,6 @@ protected:
virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
};
/**
* returns true if pointer argument is valid
* and points to an editable inset
*/
bool isEditableInset(Inset const * inset);
/**
* returns true if pointer argument is valid
* and points to a highly editable inset
*/
bool isHighlyEditableInset(Inset const * inset);
} // namespace lyx
#endif

View File

@ -750,7 +750,7 @@ void RowPainter::paintText()
}
bool const highly_editable_inset = par_.isInset(pos)
&& isHighlyEditableInset(par_.getInset(pos));
&& par_.getInset(pos)->editable() == Inset::HIGHLY_EDITABLE;
// If we reach the end of a struck out range, paint it.
// We also don't paint across things like tables