]> git.lyx.org Git - lyx.git/blobdiff - src/Row.h
remove unused code
[lyx.git] / src / Row.h
index ae8ed71fd1d73382e2f9d9eead7ed01eb51c6bb2..a3afad4c1164a3f646f36f0753e8615844561194 100644 (file)
--- a/src/Row.h
+++ b/src/Row.h
@@ -39,8 +39,12 @@ public:
        void setChanged(bool c) { changed_ = c; }
        ///
        void setCrc(size_type crc) const;
-       ///
-       void setSelection(pos_type sel_beg, pos_type sel_end);
+       /// Set the selection begin and end.
+       /**
+         * This is const because we update the selection status only at draw()
+         * time.
+         */
+       void setSelection(pos_type sel_beg, pos_type sel_end) const;
 
        ///
        void pos(pos_type p);
@@ -73,9 +77,9 @@ public:
        /// the x position of the row
        double x;
        ///
-       pos_type sel_beg;
+       mutable pos_type sel_beg;
        ///
-       pos_type sel_end;
+       mutable pos_type sel_end;
 private:
        /// has the Row appearance changed since last drawing?
        mutable bool changed_;