From 21d02307eb732474a4338f85972c3a79820d971c Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Mon, 22 Jun 2009 00:00:04 +0100 Subject: [PATCH] [cogl] Remove unused ctx->polygon_vertices array This array used to be used by cogl_polygon but was changed to use ctx->logged_vertices some time ago. --- gl/cogl-context.c | 4 ---- gl/cogl-context.h | 1 - 2 files changed, 5 deletions(-) diff --git a/gl/cogl-context.c b/gl/cogl-context.c index e40ec5774..1b6fab8f6 100644 --- a/gl/cogl-context.c +++ b/gl/cogl-context.c @@ -69,8 +69,6 @@ cogl_create_context () _context->journal = g_array_new (FALSE, FALSE, sizeof (CoglJournalEntry)); _context->logged_vertices = g_array_new (FALSE, FALSE, sizeof (GLfloat)); - _context->polygon_vertices = g_array_new (FALSE, FALSE, - sizeof (CoglTextureGLVertex)); _context->current_material = NULL; _context->current_material_flags = 0; @@ -203,8 +201,6 @@ _cogl_destroy_context () if (_context->logged_vertices) g_array_free (_context->logged_vertices, TRUE); - if (_context->polygon_vertices) - g_array_free (_context->polygon_vertices, TRUE); if (_context->current_layers) g_array_free (_context->current_layers, TRUE); diff --git a/gl/cogl-context.h b/gl/cogl-context.h index d845a6c12..9e1596e36 100644 --- a/gl/cogl-context.h +++ b/gl/cogl-context.h @@ -78,7 +78,6 @@ typedef struct * can batch things together. */ GArray *journal; GArray *logged_vertices; - GArray *polygon_vertices; /* Some simple caching, to minimize state changes... */ CoglHandle current_material;