]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_inset.C
small stuff
[lyx.git] / src / mathed / math_inset.C
index 12774e37ba9a22dd10917668e6bedafeb57518a0..9bc23390677907a362a73df3f06b728794f56084 100644 (file)
@@ -26,8 +26,8 @@
 int MathInset::workwidth;
 
 
-MathInset::MathInset(string const & name)
-       : name_(name), size_(LM_ST_DISPLAY), code_(LM_TC_MIN), xo_(0), yo_(0)
+MathInset::MathInset()
+       : size_(LM_ST_DISPLAY), xo_(0), yo_(0)
 {}
 
 
@@ -37,18 +37,6 @@ int MathInset::height() const
 }
 
 
-string const & MathInset::name() const
-{
-       return name_;
-}
-
-
-void MathInset::setName(string const & n)
-{
-       name_ = n;
-}
-
-
 MathStyles MathInset::size() const
 {
        return size_;
@@ -248,7 +236,7 @@ void MathInset::userSetSize(MathStyles sz)
 
 void MathInset::writeNormal(std::ostream & os) const
 {
-       os << "[" << name_ << "] ";
+       os << "[unknown] ";
 }
 
 
@@ -295,21 +283,9 @@ std::vector<int> MathInset::idxBetween(int from, int to) const
 }
 
 
-MathTextCodes MathInset::code() const
-{
-       return code_;
-}
-
-
-void MathInset::code(MathTextCodes t)
-{
-       code_ = t;
-}
-
-
 void MathInset::metrics(MathStyles st) const
 {
-       lyxerr[Debug::MATHED] << "MathInset::metrics() called directly!\n";
+       lyxerr << "MathInset::metrics() called directly!\n";
        size_ = st;
 }