From: Jean-Marc Lasgouttes Date: Thu, 6 Jul 2017 12:14:43 +0000 (+0200) Subject: Remove test that is not needed. X-Git-Tag: 2.2.4~97 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=311a40747e4a4348e56fc9e56345026efd895915;p=features.git Remove test that is not needed. We know that buf is not null at this point. Spotted by coverity. --- diff --git a/src/BufferList.cpp b/src/BufferList.cpp index cec9d2d76d..bcdec59d87 100644 --- a/src/BufferList.cpp +++ b/src/BufferList.cpp @@ -98,7 +98,7 @@ void BufferList::release(Buffer * buf) BufferStorage::iterator const it = find(bstore.begin(), bstore.end(), buf); if (it != bstore.end()) { - Buffer const * parent = buf ? buf->parent() : 0; + Buffer const * parent = buf->parent(); Buffer * tmp = (*it); bstore.erase(it); LASSERT(tmp, return);