From e841d41a9294a417c66f60e3900dd918170bffcc Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 21 Apr 2007 22:33:07 +0000 Subject: [PATCH] Optimisation: remove the inset mailer used in the dtor because it was far from negligible in profile results with Macro (which is a heavy user of thi MathGrid class). This matrix dialog showing/hiding was not working anyway. * InsetMathGrid::~InsetMathGrid(): deleted. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17896 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathGrid.C | 7 ------- src/mathed/InsetMathGrid.h | 2 -- 2 files changed, 9 deletions(-) diff --git a/src/mathed/InsetMathGrid.C b/src/mathed/InsetMathGrid.C index 98fc5fe44a..23f0f6d70d 100644 --- a/src/mathed/InsetMathGrid.C +++ b/src/mathed/InsetMathGrid.C @@ -184,13 +184,6 @@ InsetMathGrid::InsetMathGrid(col_type m, row_type n, char v, docstring const & h } -InsetMathGrid::~InsetMathGrid() -{ - GridInsetMailer mailer(*this); - mailer.hideDialog(); -} - - auto_ptr InsetMathGrid::doClone() const { return auto_ptr(new InsetMathGrid(*this)); diff --git a/src/mathed/InsetMathGrid.h b/src/mathed/InsetMathGrid.h index da7eb28e5d..92fa683ff5 100644 --- a/src/mathed/InsetMathGrid.h +++ b/src/mathed/InsetMathGrid.h @@ -94,8 +94,6 @@ public: InsetMathGrid(col_type m, row_type n); /// InsetMathGrid(col_type m, row_type n, char valign, docstring const & halign); - /// Ensures that the dialog is closed. - ~InsetMathGrid(); /// void metrics(MetricsInfo & mi) const; ///