]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_inset.C
IU of drawing phase one without 'semantic changes' as requested by John
[lyx.git] / src / mathed / math_inset.C
index d5d6af8653c90962a0250adb69fee0c773f598f3..675126d418dd2e94535451991e1b165fafd5e1eb 100644 (file)
 #include <config.h>
 
 #include "math_inset.h"
-#include "Lsstream.h"
 #include "math_scriptinset.h"
 #include "math_mathmlstream.h"
 #include "math_cursor.h"
-#include "math_parser.h"
 #include "debug.h"
 
 #include "frontends/LyXView.h"
@@ -35,9 +33,7 @@ using std::ostream;
 
 BufferView * MathInset::view() const
 {
-       if (!mathcursor)
-               return 0;
-       return mathcursor->formula()->view();
+       return mathcursor ? mathcursor->formula()->view() : 0;
 }
 
 
@@ -158,12 +154,6 @@ bool MathInset::idxBetween(idx_type idx, idx_type from, idx_type to) const
 }
 
 
-void MathInset::draw(PainterInfo &, int, int) const
-{
-       lyxerr << "MathInset::draw() called directly!\n";
-}
-
-
 void MathInset::drawSelection(PainterInfo &,
        idx_type, pos_type, idx_type, pos_type) const
 {
@@ -267,23 +257,6 @@ string MathInset::name() const
 }
 
 
-string asString(MathArray const & ar)
-{
-       std::ostringstream os;
-       WriteStream ws(os);
-       ws << ar;
-       return STRCONV(os.str());
-}
-
-
-MathArray asArray(string const & str)
-{
-       MathArray ar;
-       mathed_parse_cell(ar, str);
-       return ar;
-}
-
-
 ostream & operator<<(ostream & os, MathAtom const & at)
 {
        WriteStream wi(os, false, false);