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
This commit is contained in:
Abdelrazak Younes 2007-04-21 22:33:07 +00:00
parent c9dffa27a2
commit e841d41a92
2 changed files with 0 additions and 9 deletions

View File

@ -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<InsetBase> InsetMathGrid::doClone() const
{
return auto_ptr<InsetBase>(new InsetMathGrid(*this));

View File

@ -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;
///