]> git.lyx.org Git - features.git/commitdiff
Following revision 18723, Inset::destroyed() signal is not needed anymore.
authorAbdelrazak Younes <younes@lyx.org>
Sat, 9 Jun 2007 13:08:44 +0000 (13:08 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 9 Jun 2007 13:08:44 +0000 (13:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18724 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/Inset.h
src/insets/InsetText.h
src/mathed/InsetMathNest.h

index 3496358b46759495bf2cfc6d34159cc65b46e597..5e651bf589f893897f82e85a9b87a4c7e75632dc 100644 (file)
@@ -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<void()> * destroyedSignal() { return 0; }
-
 protected:
        Inset();
 
index 87998f39b73cb3975ea2af425bbd63b038a2e8b9..6ffdead4d3bbd07904f01342439d0f998c2c84da 100644 (file)
@@ -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<void()> * 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<void()> destroyed;
 
 public:
        ///
index a22766bc08cd0510ca81665e9e59747c54aedea8..3e8e1a7087904a898e6504930d9fc5dae39eea67 100644 (file)
@@ -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<void()> * 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<void()> destroyed;
 };