Drop addQuadVertices from kwinglutils.

KWin does not use GL_QUADS anymore for rendering windows.
This makes this method rather useless and isn't used anywhere either.
This commit is contained in:
Martin Gräßlin 2011-02-04 19:46:20 +01:00
parent 2e2a7948fb
commit 859dadffd8
2 changed files with 0 additions and 13 deletions

View file

@ -170,14 +170,6 @@ int nearestPowerOfTwo(int x)
return 1 << last;
}
void addQuadVertices(QVector<float>& verts, float x1, float y1, float x2, float y2)
{
verts << x1 << y1;
verts << x1 << y2;
verts << x2 << y2;
verts << x2 << y1;
}
void pushMatrix()
{
#ifndef KWIN_HAVE_OPENGLES

View file

@ -85,11 +85,6 @@ inline bool KWIN_EXPORT isPowerOfTwo(int x)
**/
int KWIN_EXPORT nearestPowerOfTwo(int x);
/**
* @deprecated Quads are not available in OpenGL ES
**/
KWIN_EXPORT void addQuadVertices(QVector<float>& verts, float x1, float y1, float x2, float y2);
/**
* Push a new matrix on the GL matrix stack.
* In GLES this method is a noop. This method should be preferred over glPushMatrix