mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Remove some useless expressions
Spotted by cppcheck
This commit is contained in:
parent
464d6262b1
commit
d9edf32b67
@ -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())
|
||||
|
@ -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);
|
||||
|
@ -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())
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user