From bad6b926360afe4b5b27ac8012651ca826023fc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Thu, 22 May 2003 18:29:02 +0000 Subject: [PATCH] remove unused constructor from class Paragraph git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7007 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 2 ++ src/paragraph.C | 24 +----------------------- src/paragraph.h | 6 +----- 3 files changed, 4 insertions(+), 28 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 4398a8ba22..f223526af6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2003-05-22 Lars Gullik Bjønnes + * paragraph.[Ch]: remove unused constructor + * ParagraphList.C (erase): new function, taking two iterators 2003-05-22 André Pönitz diff --git a/src/paragraph.C b/src/paragraph.C index d4f19258b3..5b95e3d116 100644 --- a/src/paragraph.C +++ b/src/paragraph.C @@ -80,28 +80,6 @@ Paragraph::Paragraph() } -#ifndef NO_NEXT -// This constructor inserts the new paragraph in a list. -// It is placed after par. -Paragraph::Paragraph(Paragraph * par) - : pimpl_(new Paragraph::Pimpl(this)) -{ - enumdepth = 0; - itemdepth = 0; - - // double linked list begin - next_ = par->next_; - if (next_) - next_->previous_ = this; - previous_ = par; - previous_->next_ = this; - // end - - params().clear(); -} -#endif - - Paragraph::Paragraph(Paragraph const & lp, bool same_ids) : pimpl_(new Paragraph::Pimpl(*lp.pimpl_, this, same_ids)) { @@ -1407,7 +1385,7 @@ int Paragraph::id() const LyXLayout_ptr const & Paragraph::layout() const { Inset * inset = inInset(); - if (inset && inset->lyxCode() == Inset::ENVIRONMENT_CODE) + if (inset && inset->lyxCode() == Inset::ENVIRONMENT_CODE) return static_cast(inset)->layout(); return layout_; } diff --git a/src/paragraph.h b/src/paragraph.h index 42c012f14d..1ad9141228 100644 --- a/src/paragraph.h +++ b/src/paragraph.h @@ -58,11 +58,7 @@ public: /// Paragraph(); -#ifndef NO_NEXT - /// this constructor inserts the new paragraph in a list - explicit - Paragraph(Paragraph * par); -#endif + /// Paragraph(Paragraph const &, bool same_ids); /// the destructor removes the new paragraph from the list