]> git.lyx.org Git - lyx.git/blobdiff - src/FontList.h
Account for old versions of Pygments
[lyx.git] / src / FontList.h
index d6733f9de596f593811159caf09a0f625edb8067..6400f97524bf0c9b33a1cbfdd7761fd23f213a28 100644 (file)
@@ -84,7 +84,7 @@ public:
        ///
        bool empty() const { return list_.empty(); }
        ///
-       void clear() { return list_.clear(); }
+       void clear() { list_.clear(); }
        ///
        void erase(pos_type pos);
        ///
@@ -92,7 +92,7 @@ public:
        ///
        const_iterator fontIterator(pos_type pos) const;
        ///
-       Font & get(pos_type pos);
+       Font const & get(pos_type pos);
        ///
        void set(pos_type pos, Font const & font);
        ///
@@ -105,19 +105,6 @@ public:
        ///
        void decreasePosAfterPos(pos_type pos);
 
-       /// Returns the height of the highest font in range
-       FontSize highestInRange(
-               pos_type startpos,
-               pos_type endpos,
-               FontSize def_size
-               ) const;
-
-       /// is there a font change in middle of the word?
-       bool hasChangeInRange(
-               pos_type pos, ///< position in the paragraph.
-               int len ///< length of the range to check.
-               ) const;
-
        ///
        void validate(LaTeXFeatures & features) const;