]> git.lyx.org Git - features.git/commitdiff
Remove variables set but not used
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 29 Feb 2016 13:27:51 +0000 (14:27 +0100)
committerRichard Heck <rgheck@lyx.org>
Sun, 29 May 2016 21:55:46 +0000 (17:55 -0400)
This was found by cppcheck.

src/LaTeX.cpp
src/frontends/qt4/GuiCommandBuffer.cpp
src/insets/InsetGraphicsParams.cpp

index 6063d807196c92f6a16dde7833e33b507c38aec3..0640275a36497a4dc8eea3d8c3edfae667ae3d8b 100644 (file)
@@ -955,8 +955,7 @@ bool handleFoundFile(string const & ff, DepTable & head)
                                        return true;
                                // strip off part after last space and try again
                                string tmp = strippedfile;
-                               string const stripoff =
-                                       rsplit(tmp, strippedfile, ' ');
+                               rsplit(tmp, strippedfile, ' ');
                                absname.set(strippedfile);
                                if (insertIfExists(absname, head))
                                        return true;
@@ -981,8 +980,7 @@ bool handleFoundFile(string const & ff, DepTable & head)
                                break;
                        // strip off part after last space and try again
                        string strippedfile;
-                       string const stripoff =
-                               rsplit(foundfile, strippedfile, ' ');
+                       rsplit(foundfile, strippedfile, ' ');
                        foundfile = strippedfile;
                        onlyfile = onlyFileName(strippedfile);
                        absname = makeAbsPath(onlyfile);
index 9880e2b996a37a6f60929ef61281b139ff85a936..b3f56c7444ccac06960cb36cfa322630df9378c6 100644 (file)
@@ -225,7 +225,6 @@ void GuiCommandBuffer::itemSelected(QListWidgetItem * item)
 
 void GuiCommandBuffer::up()
 {
-       string const input = fromqstr(edit_->text());
        string const h = historyUp();
 
        if (!h.empty())
@@ -238,7 +237,6 @@ void GuiCommandBuffer::up()
 
 void GuiCommandBuffer::down()
 {
-       string const input = fromqstr(edit_->text());
        string const h = historyDown();
 
        if (!h.empty())
index 03ca0d6287d10c90a86a8d3844764f50bda79923..b7ea377f4208a40d35c308bd2a57fe06f47519f4 100644 (file)
@@ -191,7 +191,6 @@ bool InsetGraphicsParams::Read(Lexer & lex, string const & token,
                lyxscale = lex.getInteger();
        } else if (token == "display") {
                lex.next();
-               string const type = lex.getString();
                display = lex.getString() != "false";
        } else if (token == "scale") {
                lex.next();