Remove variables set but not used

This was found by cppcheck.
This commit is contained in:
Jean-Marc Lasgouttes 2016-02-29 14:27:51 +01:00 committed by Richard Heck
parent a8cfeb1538
commit 019fceda3f
3 changed files with 2 additions and 7 deletions

View File

@ -955,7 +955,6 @@ bool handleFoundFile(string const & ff, DepTable & head)
return true; return true;
// strip off part after last space and try again // strip off part after last space and try again
string tmp = strippedfile; string tmp = strippedfile;
string const stripoff =
rsplit(tmp, strippedfile, ' '); rsplit(tmp, strippedfile, ' ');
absname.set(strippedfile); absname.set(strippedfile);
if (insertIfExists(absname, head)) if (insertIfExists(absname, head))
@ -981,7 +980,6 @@ bool handleFoundFile(string const & ff, DepTable & head)
break; break;
// strip off part after last space and try again // strip off part after last space and try again
string strippedfile; string strippedfile;
string const stripoff =
rsplit(foundfile, strippedfile, ' '); rsplit(foundfile, strippedfile, ' ');
foundfile = strippedfile; foundfile = strippedfile;
onlyfile = onlyFileName(strippedfile); onlyfile = onlyFileName(strippedfile);

View File

@ -225,7 +225,6 @@ void GuiCommandBuffer::itemSelected(QListWidgetItem * item)
void GuiCommandBuffer::up() void GuiCommandBuffer::up()
{ {
string const input = fromqstr(edit_->text());
string const h = historyUp(); string const h = historyUp();
if (!h.empty()) if (!h.empty())
@ -238,7 +237,6 @@ void GuiCommandBuffer::up()
void GuiCommandBuffer::down() void GuiCommandBuffer::down()
{ {
string const input = fromqstr(edit_->text());
string const h = historyDown(); string const h = historyDown();
if (!h.empty()) if (!h.empty())

View File

@ -191,7 +191,6 @@ bool InsetGraphicsParams::Read(Lexer & lex, string const & token,
lyxscale = lex.getInteger(); lyxscale = lex.getInteger();
} else if (token == "display") { } else if (token == "display") {
lex.next(); lex.next();
string const type = lex.getString();
display = lex.getString() != "false"; display = lex.getString() != "false";
} else if (token == "scale") { } else if (token == "scale") {
lex.next(); lex.next();