mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
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:
parent
36e9a1fd30
commit
589170bd4b
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user