From 8f65acf69302aa15549c5c88d9cf47e7acbf6bf2 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 9 Jun 2007 13:08:44 +0000 Subject: [PATCH] Following revision 18723, Inset::destroyed() signal is not needed anymore. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18724 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/Inset.h | 6 ------ src/insets/InsetText.h | 6 ------ src/mathed/InsetMathNest.h | 10 +--------- 3 files changed, 1 insertion(+), 21 deletions(-) diff --git a/src/insets/Inset.h b/src/insets/Inset.h index 3496358b46..5e651bf589 100644 --- a/src/insets/Inset.h +++ b/src/insets/Inset.h @@ -485,12 +485,6 @@ public: // enum { TEXT_TO_INSET_OFFSET = 4 }; - /// Signal for inset destruction. - /** This signal is emitted at the inset destruction for insets that - * support this. - */ - virtual boost::signal * destroyedSignal() { return 0; } - protected: Inset(); diff --git a/src/insets/InsetText.h b/src/insets/InsetText.h index 87998f39b7..6ffdead4d3 100644 --- a/src/insets/InsetText.h +++ b/src/insets/InsetText.h @@ -42,8 +42,6 @@ public: explicit InsetText(BufferParams const &); /// InsetText(); - /// - virtual ~InsetText() { destroyed(); } /// empty inset to empty par void clear(); @@ -140,8 +138,6 @@ public: virtual bool wide() const { return wide_inset_; } /// void setWide(bool wide_inset) { wide_inset_ = wide_inset; } - /// - boost::signal * destroyedSignal() { return &destroyed; } protected: /// @@ -163,8 +159,6 @@ private: mutable pit_type old_pit; /// bool wide_inset_; - /// This signal is emitted when the inset is destroyed. - boost::signal destroyed; public: /// diff --git a/src/mathed/InsetMathNest.h b/src/mathed/InsetMathNest.h index a22766bc08..3e8e1a7087 100644 --- a/src/mathed/InsetMathNest.h +++ b/src/mathed/InsetMathNest.h @@ -28,7 +28,7 @@ public: /// nestinsets have a fixed size to start with explicit InsetMathNest(idx_type ncells); /// - virtual ~InsetMathNest() { destroyed(); } + virtual ~InsetMathNest() {} /// the size is usually some sort of convex hull of the cells /// hides inset::metrics() intentionally! @@ -105,10 +105,6 @@ public: /// int latex(Buffer const &, odocstream & os, OutputParams const & runparams) const; - - /// This signal is emitted when the inset is destroyed. - boost::signal * destroyedSignal() { return &destroyed; } - /// bool setMouseHover(bool mouse_hover); /// @@ -163,10 +159,6 @@ protected: bool lock_; /// bool mouse_hover_; - -private: - /// This signal is emitted when the inset is destroyed. - boost::signal destroyed; }; -- 2.39.2