]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_inset.C
get rid of broken_header.h and some unneeded tests
[lyx.git] / src / mathed / math_inset.C
index 0d25b777168dfba54a2811d7d8a1aa580f14a6aa..d7fc527af1029b4a249a70294c49edaab5be4045 100644 (file)
@@ -21,10 +21,9 @@ using std::ostream;
 using std::endl;
 
 
-MathArray dummyCell;
-
 MathArray & MathInset::cell(idx_type)
 {
+       static MathArray dummyCell;
        lyxerr << "I don't have a cell 1" << endl;
        return dummyCell;
 }
@@ -32,16 +31,12 @@ MathArray & MathInset::cell(idx_type)
 
 MathArray const & MathInset::cell(idx_type) const
 {
+       static MathArray dummyCell;
        lyxerr << "I don't have a cell 2" << endl;
        return dummyCell;
 }
 
 
-void MathInset::substitute(MathMacro const &)
-{}
-
-
-
 void MathInset::dump() const
 {
        lyxerr << "---------------------------------------------" << endl;
@@ -51,13 +46,6 @@ void MathInset::dump() const
 }
 
 
-void MathInset::drawSelection(PainterInfo &,
-       idx_type, pos_type, idx_type, pos_type) const
-{
-       lyxerr << "MathInset::drawSelection() called directly!" << endl;
-}
-
-
 void MathInset::metricsT(TextMetricsInfo const &, Dimension &) const
 {
 #ifdef WITH_WARNINGS
@@ -142,9 +130,3 @@ ostream & operator<<(ostream & os, MathAtom const & at)
        at->write(wi);
        return os;
 }
-
-
-string MathInset::fileInsetLabel() const
-{
-       return "Formula";
-}