From: Abdelrazak Younes Date: Sun, 19 Oct 2008 09:23:46 +0000 (+0000) Subject: remove unused variables. X-Git-Tag: 1.6.10~2985 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=72e49fbb67f36a8b6fee0642bca58a692844c409;p=features.git remove unused variables. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26961 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Text3.cpp b/src/Text3.cpp index 6693e6297b..5c8c4dd4fd 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1313,10 +1313,9 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) cutSelection(cur, false, false); cur.clearSelection(); - Font const old_font = cur.real_current_font; docstring::const_iterator cit = cmd.argument().begin(); - docstring::const_iterator end = cmd.argument().end(); + docstring::const_iterator const end = cmd.argument().end(); for (; cit != end; ++cit) bv->translateAndInsert(*cit, this, cur); @@ -1873,8 +1872,7 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd, { LASSERT(cur.text() == this, /**/); - Font const & font = cur.real_current_font; - FontInfo const & fontinfo = font.fontInfo(); + FontInfo const & fontinfo = cur.real_current_font.fontInfo(); bool enable = true; InsetCode code = NO_CODE;