From 019fceda3fb37613c81e82ae29a66195a0414b80 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 29 Feb 2016 14:27:51 +0100 Subject: [PATCH] Remove variables set but not used This was found by cppcheck. --- src/LaTeX.cpp | 6 ++---- src/frontends/qt4/GuiCommandBuffer.cpp | 2 -- src/insets/InsetGraphicsParams.cpp | 1 - 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/LaTeX.cpp b/src/LaTeX.cpp index 6063d80719..0640275a36 100644 --- a/src/LaTeX.cpp +++ b/src/LaTeX.cpp @@ -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); diff --git a/src/frontends/qt4/GuiCommandBuffer.cpp b/src/frontends/qt4/GuiCommandBuffer.cpp index 9880e2b996..b3f56c7444 100644 --- a/src/frontends/qt4/GuiCommandBuffer.cpp +++ b/src/frontends/qt4/GuiCommandBuffer.cpp @@ -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()) diff --git a/src/insets/InsetGraphicsParams.cpp b/src/insets/InsetGraphicsParams.cpp index 03ca0d6287..b7ea377f42 100644 --- a/src/insets/InsetGraphicsParams.cpp +++ b/src/insets/InsetGraphicsParams.cpp @@ -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(); -- 2.39.5