]> git.lyx.org Git - features.git/commitdiff
remove unused variables.
authorAbdelrazak Younes <younes@lyx.org>
Sun, 19 Oct 2008 09:23:46 +0000 (09:23 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sun, 19 Oct 2008 09:23:46 +0000 (09:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26961 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text3.cpp

index 6693e6297b29a320c3b38672586cd6d480ea76ca..5c8c4dd4fd24af18dba92f0cfcdff878ac3d1127 100644 (file)
@@ -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;