]> git.lyx.org Git - lyx.git/blobdiff - src/cursor.C
Implement os::current_root for native Win32 builds.
[lyx.git] / src / cursor.C
index 06954bc17399ec5a6d1716d0b64bd9fa646fb931..0be9a3263237c7cd15038ba500432653a3c429d5 100644 (file)
@@ -120,11 +120,10 @@ namespace {
                int x, int y, int xlow, int xhigh, int ylow, int yhigh)
        {
                BOOST_ASSERT(!cursor.empty());
-               pit_type beg, end;
                CursorSlice bottom = cursor[0];
                LyXText * text = bottom.text();
                BOOST_ASSERT(text);
-               
+
                DocIterator it = doc_iterator_begin(bottom.inset());
                DocIterator const et = doc_iterator_end(bottom.inset());
 
@@ -165,7 +164,7 @@ namespace {
 } // namespace anon
 
 
-// be careful: this is called from the bv's constructor, too, so 
+// be careful: this is called from the bv's constructor, too, so
 // bv functions are not yet available!
 LCursor::LCursor(BufferView & bv)
        : DocIterator(), bv_(&bv), anchor_(), x_target_(-1),
@@ -980,10 +979,6 @@ bool LCursor::goUpDown(bool up)
                }
        }
 
-       // try current cell for e.g. text insets
-       if (inset().idxUpDown2(*this, up))
-               return true;
-
        //xarray().boundingBox(xlow, xhigh, ylow, yhigh);
        //if (up)
        //      yhigh = yo - 4;