From b83cfa09ee0e31da83dab6f6d18d6b0a6a954753 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Mon, 5 May 2003 15:00:25 +0000 Subject: [PATCH] =?utf8?q?2003-05-05=20Andr=EF=BF=BD=20P=EF=BF=BDnitz=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * inset.h: * insettext.[Ch]: * insettabular.[Ch]: * insetcollapsable.[Ch]: remove unused function firstParagraph() git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6933 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 8 ++++++++ src/insets/inset.h | 2 -- src/insets/insetcollapsable.C | 6 ------ src/insets/insetcollapsable.h | 2 -- src/insets/insettabular.C | 8 -------- src/insets/insettabular.h | 2 -- src/insets/insettext.C | 10 ---------- src/insets/insettext.h | 2 -- 8 files changed, 8 insertions(+), 32 deletions(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index f5cbd637a2..9920510543 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,11 @@ + +2003-05-05 André Pönitz + + * inset.h: + * insettext.[Ch]: + * insettabular.[Ch]: + * insetcollapsable.[Ch]: remove unused function firstParagraph() + 2003-05-03 John Levon * insetcollapsable.h: diff --git a/src/insets/inset.h b/src/insets/inset.h index cc6a214333..9f7aafa3c5 100644 --- a/src/insets/inset.h +++ b/src/insets/inset.h @@ -267,8 +267,6 @@ public: virtual Inset * getInsetFromID(int /*id*/) const { return 0; } /// if this insets owns paragraphs (f.ex. InsetText) then it /// should return it's very first one! - virtual Paragraph * firstParagraph() const { return 0; } - /// virtual Paragraph * getFirstParagraph(int /*num*/) const { return 0; } /// virtual bool haveParagraphs() const { diff --git a/src/insets/insetcollapsable.C b/src/insets/insetcollapsable.C index 7f2a9f9712..9c8d1ac446 100644 --- a/src/insets/insetcollapsable.C +++ b/src/insets/insetcollapsable.C @@ -571,12 +571,6 @@ int InsetCollapsable::scroll(bool recursive) const } -Paragraph * InsetCollapsable::firstParagraph() const -{ - return inset.firstParagraph(); -} - - Paragraph * InsetCollapsable::getFirstParagraph(int i) const { return inset.getFirstParagraph(i); diff --git a/src/insets/insetcollapsable.h b/src/insets/insetcollapsable.h index e755d3f195..f5b05f6211 100644 --- a/src/insets/insetcollapsable.h +++ b/src/insets/insetcollapsable.h @@ -142,8 +142,6 @@ public: /// Inset * getInsetFromID(int id) const; /// - Paragraph * firstParagraph() const; - /// Paragraph * getFirstParagraph(int) const; /// LyXCursor const & cursor(BufferView *) const; diff --git a/src/insets/insettabular.C b/src/insets/insettabular.C index 23ea3059c7..0d1ec66543 100644 --- a/src/insets/insettabular.C +++ b/src/insets/insettabular.C @@ -2522,14 +2522,6 @@ void InsetTabular::getSelection(int & srow, int & erow, } -Paragraph * InsetTabular::firstParagraph() const -{ - if (the_locking_inset) - return the_locking_inset->firstParagraph(); - return 0; -} - - Paragraph * InsetTabular::getFirstParagraph(int i) const { return (i < tabular->GetNumberOfCells()) diff --git a/src/insets/insettabular.h b/src/insets/insettabular.h index 1ed2a06f20..176e8daf0f 100644 --- a/src/insets/insettabular.h +++ b/src/insets/insettabular.h @@ -195,8 +195,6 @@ public: /// Inset * getInsetFromID(int id) const; /// - Paragraph * firstParagraph() const; - /// Paragraph * getFirstParagraph(int) const; /// LyXCursor const & cursor(BufferView *) const; diff --git a/src/insets/insettext.C b/src/insets/insettext.C index fe14c09257..3b2231bd47 100644 --- a/src/insets/insettext.C +++ b/src/insets/insettext.C @@ -2382,16 +2382,6 @@ void InsetText::clearInset(BufferView * bv, int start_x, int baseline) const } -Paragraph * InsetText::firstParagraph() const -{ - Paragraph * result; - if (the_locking_inset) - if ((result = the_locking_inset->firstParagraph())) - return result; - return &*(paragraphs.begin()); -} - - Paragraph * InsetText::getFirstParagraph(int i) const { return (i == 0) ? &*(paragraphs.begin()) : 0; diff --git a/src/insets/insettext.h b/src/insets/insettext.h index 6ffd4d5f3b..b2dc28b551 100644 --- a/src/insets/insettext.h +++ b/src/insets/insettext.h @@ -198,8 +198,6 @@ public: /// Inset * getInsetFromID(int id) const; /// - Paragraph * firstParagraph() const; - /// Paragraph * getFirstParagraph(int) const; /// LyXCursor const & cursor(BufferView *) const; -- 2.39.5