Cleanup: remove special cases for getting internal span or single
Those are handled in the called function already.
This commit is contained in:
parent
dc7f88fd15
commit
17eb8a9ceb
Notes:
blender-bot
2023-02-14 08:33:26 +01:00
Referenced by issue #98270, Regression: Nishita Sky - Black Sun Disc(Cycles) Referenced by issue #97963, Blender 3.2 / Linux - Crashing To Desktop at opening any .blend file Referenced by issue #97737, GPU Subdivision: Crash after opening particular files Referenced by issue #97606, Crash on linux with amd gpu with two subdivision modifiers Referenced by issue #97315, Regression: Cycles visual glitches and hangs in alpha using HIP GPU Referenced by issue #96435, Regression: very long input delay when dragging some gizmos handles in macOS
|
@ -780,9 +780,6 @@ template<typename T> class VArrayCommon {
|
|||
Span<T> get_internal_span() const
|
||||
{
|
||||
BLI_assert(this->is_span());
|
||||
if (this->is_empty()) {
|
||||
return {};
|
||||
}
|
||||
return impl_->get_internal_span();
|
||||
}
|
||||
|
||||
|
@ -800,9 +797,6 @@ template<typename T> class VArrayCommon {
|
|||
T get_internal_single() const
|
||||
{
|
||||
BLI_assert(this->is_single());
|
||||
if (impl_->size() == 1) {
|
||||
return impl_->get(0);
|
||||
}
|
||||
return impl_->get_internal_single();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue