mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +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;
|
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))
|
||||||
return true;
|
return true;
|
||||||
@ -981,8 +980,7 @@ 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);
|
||||||
absname = makeAbsPath(onlyfile);
|
absname = makeAbsPath(onlyfile);
|
||||||
|
@ -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())
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user