delete unused variables.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16500 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-01-04 13:29:35 +00:00
parent 4d7795d4d2
commit 89ab910a4f
2 changed files with 1 additions and 3 deletions

View File

@ -516,9 +516,8 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
if (inset) { if (inset) {
FuncRequest fr(LFUN_INSET_MODIFY, cmd.argument()); FuncRequest fr(LFUN_INSET_MODIFY, cmd.argument());
FuncStatus fs; FuncStatus fs;
bool const success = inset->getStatus(cur, fr, fs);
// Every inset is supposed to handle this // Every inset is supposed to handle this
BOOST_ASSERT(success); BOOST_ASSERT(inset->getStatus(cur, fr, fs));
flag |= fs; flag |= fs;
} else { } else {
FuncRequest fr(LFUN_INSET_INSERT, cmd.argument()); FuncRequest fr(LFUN_INSET_INSERT, cmd.argument());

View File

@ -144,7 +144,6 @@ namespace {
replaceSelection(cur); replaceSelection(cur);
if (sel.empty()) { if (sel.empty()) {
const int old_pos = cur.pos();
cur.insert(new InsetMathHull(hullSimple)); cur.insert(new InsetMathHull(hullSimple));
BOOST_ASSERT(old_pos == cur.pos()); BOOST_ASSERT(old_pos == cur.pos());
cur.nextInset()->edit(cur, true); cur.nextInset()->edit(cur, true);