]> git.lyx.org Git - features.git/commitdiff
Remove mostly unused function.
authorAbdelrazak Younes <younes@lyx.org>
Sat, 13 Oct 2007 12:58:43 +0000 (12:58 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 13 Oct 2007 12:58:43 +0000 (12:58 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20943 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text2.cpp
src/insets/Inset.cpp
src/insets/Inset.h
src/rowpainter.cpp

index c5171fbbd581a73e1a88cdfcd4018a951c5d9926..bd7effb23f36ced85b42935a167e2c8170271782 100644 (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
index 603f61fee296d7d4711e7338523728a77b8c7220..1876f5ec3fb05ca549a3360307758eddce5266d6 100644 (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
index 6179e119905e2f4f929d5346a34293caab34d84f..c457b8b1d094fb1dea9f186b55a29bde9d809b5c 100644 (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
index 533edcd58583d60660078d2d2af7564b3c40e612..9ed482c9905957b239342b7cbc1595b6dbab79f8 100644 (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