[partition] Remove superfluous null check

delete is specified to handle nullptr gracefully.

FIXES #1012
main
Adriaan de Groot 7 years ago
parent 81ea5f5249
commit 08d41f745b

@ -98,8 +98,7 @@ erase(DeviceList& l, DeviceList::iterator& it)
{ {
Device* p = *it; Device* p = *it;
auto r = l.erase( it ); auto r = l.erase( it );
if (p) delete p;
delete p;
return r; return r;
} }

Loading…
Cancel
Save