From 447378753d320ea04d7c1ce00723fc02f35966f0 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Thu, 25 Nov 2021 13:51:23 +0100 Subject: BLI: remove special cases for is_span and is_single methods Those were not implemented consistently and don't really help in practice. --- source/blender/blenlib/BLI_virtual_array.hh | 6 ------ 1 file changed, 6 deletions(-) (limited to 'source/blender/blenlib') diff --git a/source/blender/blenlib/BLI_virtual_array.hh b/source/blender/blenlib/BLI_virtual_array.hh index b8b05e88572..33b3f82c0c2 100644 --- a/source/blender/blenlib/BLI_virtual_array.hh +++ b/source/blender/blenlib/BLI_virtual_array.hh @@ -719,9 +719,6 @@ template class VArrayCommon { bool is_span() const { BLI_assert(*this); - if (this->is_empty()) { - return true; - } return impl_->is_span(); } @@ -742,9 +739,6 @@ template class VArrayCommon { bool is_single() const { BLI_assert(*this); - if (impl_->size() == 1) { - return true; - } return impl_->is_single(); } -- cgit v1.2.3