From 52cb6e770b52e61583d0b5ff7e2820e9b22a32ac Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 2 Oct 2007 19:42:14 +0000 Subject: [PATCH] Remove unneeded changed() and closing() delegates. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20668 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Buffer.cpp | 7 ------- src/frontends/Delegates.h | 4 ---- src/frontends/LyXView.cpp | 16 ---------------- src/frontends/LyXView.h | 4 ---- 4 files changed, 31 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 5dfdd6c70a..26d171c6b8 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1976,13 +1976,6 @@ void Buffer::resetAutosaveTimers() const } -void Buffer::closing(Buffer * buf) const -{ - if (gui_) - gui_->closing(buf); -} - - void Buffer::setGuiDelegate(frontend::GuiBufferDelegate * gui) { gui_ = gui; diff --git a/src/frontends/Delegates.h b/src/frontends/Delegates.h index 0f64958a0e..c063c0d37f 100644 --- a/src/frontends/Delegates.h +++ b/src/frontends/Delegates.h @@ -51,8 +51,6 @@ class GuiBufferDelegate { public: virtual ~GuiBufferDelegate() {} - /// This function is called when the buffer is changed. - virtual void changed() = 0; /// This function is called when the buffer structure is changed. virtual void structureChanged() = 0; /// This function is called when an embedded file is changed @@ -69,8 +67,6 @@ public: virtual void updateTitles() = 0; /// Reset autosave timers for all users. virtual void resetAutosaveTimers() = 0; - /// This signal is emitting if the buffer is being closed. - virtual void closing(Buffer *) = 0; }; } // namespace frontend diff --git a/src/frontends/LyXView.cpp b/src/frontends/LyXView.cpp index 10c8e32c0c..4b1f34d1f8 100644 --- a/src/frontends/LyXView.cpp +++ b/src/frontends/LyXView.cpp @@ -314,21 +314,5 @@ Buffer const * LyXView::updateInset(Inset const * inset) return &work_area->bufferView().buffer(); } - - -void LyXView::changed() -{ - if (WorkArea * wa = currentWorkArea()) - wa->redraw(); -} - - -void LyXView::closing(Buffer *) -{ - if (WorkArea * wa = currentWorkArea()) - removeWorkArea(wa); -} - - } // namespace frontend } // namespace lyx diff --git a/src/frontends/LyXView.h b/src/frontends/LyXView.h index a8f46fbcbf..30443e15f1 100644 --- a/src/frontends/LyXView.h +++ b/src/frontends/LyXView.h @@ -182,10 +182,6 @@ public: // // GuiBufferDelegate // - /// This function is called when the buffer is changed. - void changed(); - /// This function is called if the buffer is being closed. - void closing(Buffer *); /// This function is called when the buffer structure is changed. void structureChanged() { updateToc(); } /// This function is called when an embedded file is changed -- 2.39.2