diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-10-16 12:09:01 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-10-30 17:15:55 +0300 |
commit | 7dda8f7faf9c6db5f39520accd914666b473ed50 (patch) | |
tree | baf95416dbe2b0a987f803262027251d7b4a6c39 /intern/opensubdiv/internal | |
parent | 622aedb78ae13c312782bebfc5ea9799d369c8ea (diff) |
OpenSubdiv: Cleanup, remove unused static methods
Diffstat (limited to 'intern/opensubdiv/internal')
-rw-r--r-- | intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc index fa45c0119ec..515a01e4718 100644 --- a/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc +++ b/intern/opensubdiv/internal/opensubdiv_evaluator_internal.cc @@ -70,13 +70,6 @@ namespace { // supported. class PatchCoordBuffer : public vector<PatchCoord> { public: - static PatchCoordBuffer *Create(int size) - { - PatchCoordBuffer *buffer = new PatchCoordBuffer(); - buffer->resize(size); - return buffer; - } - PatchCoord *BindCpuBuffer() { return reinterpret_cast<PatchCoord *>(&(*this)[0]); @@ -99,11 +92,6 @@ class PatchCoordBuffer : public vector<PatchCoord> { // coordinates to the CPU evaluator. Other evaluators are not supported. class SinglePatchCoordBuffer { public: - static SinglePatchCoordBuffer *Create() - { - return new SinglePatchCoordBuffer(); - } - SinglePatchCoordBuffer() { } @@ -137,13 +125,6 @@ class SinglePatchCoordBuffer { // TODO(sergey): Check if bare arrays could be used by CPU evaluator. template<int element_size, int num_vertices> class StackAllocatedBuffer { public: - static PatchCoordBuffer *Create(int /*size*/) - { - // TODO(sergey): Validate that requested size is smaller than static - // stack memory size. - return new StackAllocatedBuffer<element_size, num_vertices>(); - } - float *BindCpuBuffer() { return &data_[0]; |