diff --git a/src/lyxfunc.C b/src/lyxfunc.C index f18fe3ada4..5324f4b53c 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -516,9 +516,8 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const if (inset) { FuncRequest fr(LFUN_INSET_MODIFY, cmd.argument()); FuncStatus fs; - bool const success = inset->getStatus(cur, fr, fs); // Every inset is supposed to handle this - BOOST_ASSERT(success); + BOOST_ASSERT(inset->getStatus(cur, fr, fs)); flag |= fs; } else { FuncRequest fr(LFUN_INSET_INSERT, cmd.argument()); diff --git a/src/text3.C b/src/text3.C index 3afcfbfd30..154d58528e 100644 --- a/src/text3.C +++ b/src/text3.C @@ -144,7 +144,6 @@ namespace { replaceSelection(cur); if (sel.empty()) { - const int old_pos = cur.pos(); cur.insert(new InsetMathHull(hullSimple)); BOOST_ASSERT(old_pos == cur.pos()); cur.nextInset()->edit(cur, true);