From 991eb5f79c5381eb45df90e526f5332b4364b35c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Tue, 1 Sep 2020 10:07:39 +0200 Subject: Cleanup: GPUContext: Remove unused functions --- source/blender/gpu/opengl/gl_context.cc | 22 ---------------------- source/blender/gpu/opengl/gl_context.hh | 2 -- 2 files changed, 24 deletions(-) (limited to 'source/blender') diff --git a/source/blender/gpu/opengl/gl_context.cc b/source/blender/gpu/opengl/gl_context.cc index a3b060abf0e..1495e665aa8 100644 --- a/source/blender/gpu/opengl/gl_context.cc +++ b/source/blender/gpu/opengl/gl_context.cc @@ -276,26 +276,4 @@ void GLContext::vao_cache_unregister(GLVaoCache *cache) lists_mutex_.unlock(); } -void GLContext::framebuffer_register(struct GPUFrameBuffer *fb) -{ -#ifdef DEBUG - lists_mutex_.lock(); - framebuffers_.add(fb); - lists_mutex_.unlock(); -#else - UNUSED_VARS(fb); -#endif -} - -void GLContext::framebuffer_unregister(struct GPUFrameBuffer *fb) -{ -#ifdef DEBUG - lists_mutex_.lock(); - framebuffers_.remove(fb); - lists_mutex_.unlock(); -#else - UNUSED_VARS(fb); -#endif -} - /** \} */ diff --git a/source/blender/gpu/opengl/gl_context.hh b/source/blender/gpu/opengl/gl_context.hh index fa1c6b9918e..bc7e2060804 100644 --- a/source/blender/gpu/opengl/gl_context.hh +++ b/source/blender/gpu/opengl/gl_context.hh @@ -92,8 +92,6 @@ class GLContext : public GPUContext { void fbo_free(GLuint fbo_id); void vao_cache_register(GLVaoCache *cache); void vao_cache_unregister(GLVaoCache *cache); - void framebuffer_register(struct GPUFrameBuffer *fb); - void framebuffer_unregister(struct GPUFrameBuffer *fb); }; } // namespace gpu -- cgit v1.2.3