X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_inset.C;h=9bc23390677907a362a73df3f06b728794f56084;hb=2da8fcabdc695b8bb139d7252b923ef6b9aa29dd;hp=12774e37ba9a22dd10917668e6bedafeb57518a0;hpb=8b7b3a589507e2bed9777f2854ea731c454492e4;p=lyx.git diff --git a/src/mathed/math_inset.C b/src/mathed/math_inset.C index 12774e37ba..9bc2339067 100644 --- a/src/mathed/math_inset.C +++ b/src/mathed/math_inset.C @@ -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 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; }