X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=helpers%2Fglsize.hpp;h=7c1d0176f4953583ae633fed3df621228d441406;hb=712cc1db47e56a1032dc72d4209ffc9054ec54e4;hp=dbc753ac80f6d16482198d7dd33af6038798109e;hpb=207ced34a8b998539414c5213acc6d7a393ca27a;p=apitrace diff --git a/helpers/glsize.hpp b/helpers/glsize.hpp index dbc753a..7c1d017 100644 --- a/helpers/glsize.hpp +++ b/helpers/glsize.hpp @@ -1470,25 +1470,4 @@ _glGetDebugMessageLog_length(const Char * string, const GLsizei *lengths, GLuint return size; } -/* - * (key, value) attribute list, terminated by the given terminator. - */ -template -static inline size_t -_AttribPairList_size(const T *pAttribList, const T terminator = static_cast(0)) -{ - size_t size = 0; - - if (pAttribList) { - while (pAttribList[size] != terminator) { - size += 2; - } - // terminator also counts - ++size; - } - - return size; -} - - #endif /* _GL_SIZE_HPP_ */