Remove redundant nullptr check. (#6326)

This commit is contained in:
Siarhei Fedartsou
2022-08-25 00:01:56 +02:00
committed by GitHub
parent 91895604c9
commit df3c553f4f
3 changed files with 4 additions and 7 deletions
+1 -5
View File
@@ -236,11 +236,7 @@ template <typename ElementT> class DeallocatingVector
// Delete[]'ing ptr's to all Buckets
for (auto bucket : bucket_list)
{
if (nullptr != bucket)
{
delete[] bucket;
bucket = nullptr;
}
delete[] bucket;
}
bucket_list.clear();
bucket_list.shrink_to_fit();