From 859dadffd8b51a7e4a0ef05fb6f49fb2f479565c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 4 Feb 2011 19:46:20 +0100 Subject: [PATCH] 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. --- lib/kwinglutils.cpp | 8 -------- lib/kwinglutils.h | 5 ----- 2 files changed, 13 deletions(-) diff --git a/lib/kwinglutils.cpp b/lib/kwinglutils.cpp index 99b648716f..82ebb1fa6e 100644 --- a/lib/kwinglutils.cpp +++ b/lib/kwinglutils.cpp @@ -170,14 +170,6 @@ int nearestPowerOfTwo(int x) return 1 << last; } -void addQuadVertices(QVector& 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 diff --git a/lib/kwinglutils.h b/lib/kwinglutils.h index 829d5fe580..a7cff39d89 100644 --- a/lib/kwinglutils.h +++ b/lib/kwinglutils.h @@ -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& 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