From 5843827fb9ff4338de78ada25ed4d71fe0f32b4a Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 16 Oct 2019 12:31:21 +0200 Subject: OpenSubdiv: Cleanup, remove unused class --- .../internal/opensubdiv_evaluator_internal.cc | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'intern/opensubdiv/internal') diff --git a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc index c584fad7543..86271da59bc 100644 --- a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc +++ b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc @@ -96,27 +96,6 @@ class SinglePatchCoordBuffer { PatchCoord patch_coord_; }; -// Helper class which is aimed to be used in cases when buffer is small enough -// and better to be allocated in stack rather than in heap. -// -// TODO(sergey): Check if bare arrays could be used by CPU evaluator. -template class StackAllocatedBuffer { - public: - float *BindCpuBuffer() - { - return &data_[0]; - } - - int GetNumVertices() - { - return num_vertices; - } - - // TODO(sergey): Support UpdateData(). - protected: - float data_[element_size * num_vertices]; -}; - // Buffer which implements API required by OpenSubdiv and uses an existing memory as an underlying // storage. template class RawDataWrapperBuffer { -- cgit v1.2.3