From d5f8004189e31579f4dc2ef9c38549a08671f5c4 Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Mon, 25 Jun 2007 08:06:32 +0000 Subject: [PATCH] remove unused CursorSlice::invalidate & isValid methods git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18880 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/CursorSlice.cpp | 12 ------------ src/CursorSlice.h | 4 ---- 2 files changed, 16 deletions(-) diff --git a/src/CursorSlice.cpp b/src/CursorSlice.cpp index 710f65c804..56b642a89e 100644 --- a/src/CursorSlice.cpp +++ b/src/CursorSlice.cpp @@ -44,18 +44,6 @@ CursorSlice::CursorSlice(Inset & p) } -void CursorSlice::invalidate() -{ - inset_ = 0; -} - - -bool CursorSlice::isValid() const -{ - return inset_ != 0; -} - - MathData & CursorSlice::cell() const { return inset_->asInsetMath()->cell(idx_); diff --git a/src/CursorSlice.h b/src/CursorSlice.h index bcada34e19..a9326f1cce 100644 --- a/src/CursorSlice.h +++ b/src/CursorSlice.h @@ -57,8 +57,6 @@ public: CursorSlice(); /// explicit CursorSlice(Inset &); - /// - bool isValid() const; /// the current inset Inset & inset() const { return *inset_; } @@ -124,8 +122,6 @@ public: /// write some debug information to \p os friend std::ostream & operator<<(std::ostream &, CursorSlice const &); private: - /// - void invalidate(); /// pointer to 'owning' inset. This is some kind of cache. Inset * inset_; -- 2.39.5