]> git.lyx.org Git - features.git/commitdiff
Remove unneeded changed() and closing() delegates.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 2 Oct 2007 19:42:14 +0000 (19:42 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 2 Oct 2007 19:42:14 +0000 (19:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20668 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.cpp
src/frontends/Delegates.h
src/frontends/LyXView.cpp
src/frontends/LyXView.h

index 5dfdd6c70ad19f8f8265a927f3427778ffbb58dd..26d171c6b88c81747468fb7386e10c180a340b99 100644 (file)
@@ -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;
index 0f64958a0e4120c9ce6e65c5683f7dc0c37cdc74..c063c0d37f0a27a8c1198381a2d39c16ebfd7f87 100644 (file)
@@ -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
index 10c8e32c0cf8b441fde6365899b73643aa76fb59..4b1f34d1f85ca77d87546f5ce818654fcb62c8c3 100644 (file)
@@ -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
index a8f46fbcbf19ad856284b64849218a8c4736e534..30443e15f137c5e57fd13b7c26454e9e220e8ea4 100644 (file)
@@ -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