Abdel,

do you think we can remove this unused and disabled method or would you like to keep it?

Michael
Index: BufferView.C
===================================================================
--- BufferView.C        (Revision 17017)
+++ BufferView.C        (Arbeitskopie)
@@ -1175,26 +1175,6 @@
 }
 
 
-void BufferView::scroll(int /*lines*/)
-{
-//     if (!buffer_)
-//             return;
-//
-//     LyXText const * t = &buffer_->text();
-//     int const line_height = defaultRowHeight();
-//
-//     // The new absolute coordinate
-//     int new_top_y = top_y() + lines * line_height;
-//
-//     // Restrict to a valid value
-//     new_top_y = std::min(t->height() - 4 * line_height, new_top_y);
-//     new_top_y = std::max(0, new_top_y);
-//
-//     scrollDocView(new_top_y);
-//
-}
-
-
 void BufferView::setCursorFromRow(int row)
 {
        int tmpid = -1;
Index: BufferView.h
===================================================================
--- BufferView.h        (Revision 17017)
+++ BufferView.h        (Arbeitskopie)
@@ -133,8 +133,6 @@
 
        /// center the document view around the cursor.
        void center();
-       /// scroll document by the given number of lines of default height.
-       void scroll(int lines);
        /// Scroll the view by a number of pixels.
        void scrollDocView(int pixels);
        /// Set the cursor position based on the scrollbar one.

Reply via email to