Remove wrong and unneeded insetSleep/Wakeup functions.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4046 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2002-04-23 13:35:43 +00:00
parent 4bf874c30e
commit 6e00a5436e
5 changed files with 19 additions and 1 deletions

View File

@ -178,7 +178,7 @@ void BufferView::setState()
pimpl_->setState();
}
#if 0
void BufferView::insetSleep()
{
pimpl_->insetSleep();
@ -189,6 +189,7 @@ void BufferView::insetWakeup()
{
pimpl_->insetWakeup();
}
#endif
void BufferView::insetUnlock()

View File

@ -117,10 +117,12 @@ public:
int sly;
///
void insetUnlock();
#if 0
///
void insetSleep();
///
void insetWakeup();
#endif
///
void replaceWord(string const & replacestring);
///

View File

@ -176,7 +176,9 @@ void BufferView::Pimpl::buffer(Buffer * b)
lyxerr[Debug::INFO] << "Setting buffer in BufferView ("
<< b << ")" << endl;
if (buffer_) {
#if 0
insetSleep();
#endif
buffer_->delUser(bv_);
// Put the old text into the TextCache, but
@ -222,7 +224,9 @@ void BufferView::Pimpl::buffer(Buffer * b)
// require bv_->text.
owner_->getDialogs()->updateBufferDependent(true);
redraw();
#if 0
insetWakeup();
#endif
} else {
lyxerr[Debug::INFO] << " No Buffer!" << endl;
owner_->updateMenubar();
@ -1380,6 +1384,7 @@ void BufferView::Pimpl::setState()
}
#if 0
void BufferView::Pimpl::insetSleep()
{
if (bv_->theLockingInset() && !inset_slept) {
@ -1397,6 +1402,7 @@ void BufferView::Pimpl::insetWakeup()
inset_slept = false;
}
}
#endif
void BufferView::Pimpl::insetUnlock()

View File

@ -102,10 +102,12 @@ struct BufferView::Pimpl : public SigC::Object {
bool isSavedPosition(unsigned int i);
///
void setState();
#if 0
///
void insetSleep();
///
void insetWakeup();
#endif
///
void insetUnlock();
///

View File

@ -1,3 +1,10 @@
2002-04-23 Juergen Vigna <jug@sad.it>
* BufferView_pimpl.[Ch]: remove use of wrong and unneeded insetSleep/
Wakeup functions.
* BufferView.[Ch]: remove not needed insetSleep/Wakeup functions.
2002-04-22 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* lyxfunc.C (getStatus): LFUN_PROTECTED_SPACE is allowed in maths