]> git.lyx.org Git - features.git/commitdiff
remove unused constructor from class Paragraph
authorLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 22 May 2003 18:29:02 +0000 (18:29 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 22 May 2003 18:29:02 +0000 (18:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7007 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/paragraph.C
src/paragraph.h

index 4398a8ba226f064b3ec59c2c00fdcf4f35bff850..f223526af6808de0beb01479245bc48bb7180b34 100644 (file)
@@ -1,5 +1,7 @@
 2003-05-22  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
+       * paragraph.[Ch]: remove unused constructor
+
        * ParagraphList.C (erase): new function, taking two iterators
 
 2003-05-22  André Pönitz  <poenitz@gmx.net>
index d4f19258b3d44582770eff9080c522b59454ad8d..5b95e3d116e55e7d6361265cd43faa904242e6e8 100644 (file)
@@ -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<InsetEnvironment*>(inset)->layout();
        return layout_;
 }
index 42c012f14d6cc0e6939b10a7d95c8cbc159c520c..1ad91412289600f282985b39c185fcea39b479de 100644 (file)
@@ -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