From 27fe0982fc18d1f5f9efe942e18c42f508268f34 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 28 Nov 2013 14:42:58 +0200 Subject: [PATCH] Remove get(int *) By contrast to the previous commit, this was rather useless and not actually used anywhere in the code. --- source/misc.cpp | 7 +------ source/misc.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/source/misc.cpp b/source/misc.cpp index 3af18765..39810be3 100644 --- a/source/misc.cpp +++ b/source/misc.cpp @@ -22,15 +22,10 @@ void set(GLenum state, bool value) disable(state); } -void get(GLenum state, int *data) -{ - glGetIntegerv(state, data); -} - int get_i(GLenum state) { int data; - get(state, &data); + glGetIntegerv(state, &data); return data; } diff --git a/source/misc.h b/source/misc.h index 86e09c04..32adc9bf 100644 --- a/source/misc.h +++ b/source/misc.h @@ -10,7 +10,6 @@ void enable(GLenum); void disable(GLenum); void set(GLenum, bool); -void get(GLenum, int *); int get_i(GLenum); int get_shader_i(unsigned, GLenum); int get_program_i(unsigned, GLenum); -- 2.45.2