remove unused constructor from class Paragraph

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7007 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2003-05-22 18:29:02 +00:00
parent a79813c242
commit bad6b92636
3 changed files with 4 additions and 28 deletions

View 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>

View 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))
{

View 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