mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
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:
parent
a79813c242
commit
bad6b92636
@ -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>
|
||||
|
@ -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_;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user