mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +00:00
Remove variables set but not used
This was found by cppcheck.
This commit is contained in:
parent
a8cfeb1538
commit
019fceda3f
@ -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);
|
||||
|
@ -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())
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user