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;
// strip off part after last space and try again
string tmp = strippedfile;
string const stripoff =
rsplit(tmp, strippedfile, ' ');
absname.set(strippedfile);
if (insertIfExists(absname, head))
@ -981,7 +980,6 @@ 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, ' ');
foundfile = strippedfile;
onlyfile = onlyFileName(strippedfile);

View 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())

View 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();