From b4fb3db559ccd79e06a44ee9605f969bf8ef7d57 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 16 Oct 2019 11:18:36 +0200 Subject: OpenSubdiv: Cleanup, remove unused PatchBuffer class --- .../internal/opensubdiv_evaluator_internal.cc | 23 ---------------------- 1 file changed, 23 deletions(-) (limited to 'intern') diff --git a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc index c870df7ab5d..d2cd366ba11 100644 --- a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc +++ b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc @@ -65,29 +65,6 @@ namespace opensubdiv_capi { namespace { -// Helper class to wrap numerous of patch coordinates into a buffer. -// Used to pass coordinates to the CPU evaluator. Other evaluators are not -// supported. -class PatchCoordBuffer : public vector { - public: - PatchCoord *BindCpuBuffer() - { - return reinterpret_cast(&(*this)[0]); - } - - int GetNumVertices() - { - return size(); - } - - void UpdateData(const PatchCoord *patch_coords, int num_patch_coords) - { - memcpy(&(*this)[0], - reinterpret_cast(patch_coords), - sizeof(PatchCoord) * num_patch_coords); - } -}; - // Helper class to wrap single of patch coord into a buffer. Used to pass // coordinates to the CPU evaluator. Other evaluators are not supported. class SinglePatchCoordBuffer { -- cgit v1.2.3