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

View File

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

View File

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

View File

@ -102,10 +102,12 @@ struct BufferView::Pimpl : public SigC::Object {
bool isSavedPosition(unsigned int i); bool isSavedPosition(unsigned int i);
/// ///
void setState(); void setState();
#if 0
/// ///
void insetSleep(); void insetSleep();
/// ///
void insetWakeup(); void insetWakeup();
#endif
/// ///
void insetUnlock(); 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> 2002-04-22 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* lyxfunc.C (getStatus): LFUN_PROTECTED_SPACE is allowed in maths * lyxfunc.C (getStatus): LFUN_PROTECTED_SPACE is allowed in maths