Cleanup: GPUContext: Remove unused functions

This commit is contained in:
2020-09-01 10:07:39 +02:00
parent a6185e4fa5
commit 991eb5f79c
2 changed files with 0 additions and 24 deletions

View File

@@ -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
}
/** \} */

View File

@@ -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