mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
* src/paragraph.h:
* src/paragraph_pimpl.C: * src/paragraph_pimpl.h: * src/paragraph.C: get rid of unused method setContentsFromPar() and remove another change tracking FIXME at the same time git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15676 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4fb480f34f
commit
b937ae39f9
@ -1409,12 +1409,6 @@ void Paragraph::setInsetOwner(InsetBase * inset)
|
||||
}
|
||||
|
||||
|
||||
void Paragraph::setContentsFromPar(Paragraph const & par)
|
||||
{
|
||||
pimpl_->setContentsFromPar(par);
|
||||
}
|
||||
|
||||
|
||||
Change const Paragraph::lookupChange(pos_type pos) const
|
||||
{
|
||||
BOOST_ASSERT(pos <= size());
|
||||
|
@ -178,8 +178,6 @@ public:
|
||||
///
|
||||
bool empty() const { return text_.empty(); }
|
||||
///
|
||||
void setContentsFromPar(Paragraph const & par);
|
||||
///
|
||||
void clearContents();
|
||||
|
||||
///
|
||||
|
@ -78,15 +78,6 @@ Paragraph::Pimpl::Pimpl(Pimpl const & p, Paragraph * owner)
|
||||
}
|
||||
|
||||
|
||||
void Paragraph::Pimpl::setContentsFromPar(Paragraph const & par)
|
||||
{
|
||||
owner_->text_ = par.text_;
|
||||
// FIXME: change tracking (MG)
|
||||
// check whether this method is really needed
|
||||
changes_ = par.pimpl_->changes_;
|
||||
}
|
||||
|
||||
|
||||
bool Paragraph::Pimpl::isChanged(pos_type start, pos_type end) const
|
||||
{
|
||||
BOOST_ASSERT(start >= 0 && start <= size());
|
||||
|
@ -35,8 +35,6 @@ public:
|
||||
Pimpl(Paragraph * owner);
|
||||
/// "Copy constructor"
|
||||
Pimpl(Pimpl const &, Paragraph * owner);
|
||||
///
|
||||
void setContentsFromPar(Paragraph const & par);
|
||||
|
||||
//
|
||||
// Change tracking
|
||||
|
Loading…
Reference in New Issue
Block a user