Remove some useless expressions

Spotted by cppcheck
This commit is contained in:
Jean-Marc Lasgouttes 2019-10-27 00:09:05 +02:00
parent 464d6262b1
commit d9edf32b67
4 changed files with 0 additions and 4 deletions

View File

@ -1330,7 +1330,6 @@ docstring const BiblioInfo::getInfo(docstring const & key,
return docstring(_("Bibliography entry not found!"));
BibTeXInfo const & data = it->second;
BibTeXInfoList xrefptrs;
vector<docstring> const xrefs = getXRefs(data);
for (docstring const & xref : getXRefs(data)) {
BiblioInfo::const_iterator const xrefit = find(xref);
if (xrefit != end())

View File

@ -3185,7 +3185,6 @@ void BufferView::draw(frontend::Painter & pain, bool paint_caret)
// however, the different coordinates of insets and paragraphs
// needs to be updated.
LYXERR(Debug::PAINTING, "Strategy: NoScreenUpdate");
pi.full_repaint = false;
if (pain.isNull()) {
pi.full_repaint = true;
tm.draw(pi, 0, y);

View File

@ -581,7 +581,6 @@ Language const * getLanguage(Cursor const & cur, string const & lang)
docstring resolveLayout(docstring layout, DocIterator const & dit)
{
Paragraph const & par = dit.paragraph();
docstring const old_layout = par.layout().name();
DocumentClass const & tclass = dit.buffer()->params().documentClass();
if (layout.empty())

View File

@ -1996,7 +1996,6 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
break;
}
return doc_buffer->getStatus(cmd, flag);
break;
}
case LFUN_BUFFER_EXPORT_AS: