[gtk/matthiasc/for-master: 9/14] ngl: Remove an unused field
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 9/14] ngl: Remove an unused field
- Date: Sun, 21 Mar 2021 20:05:35 +0000 (UTC)
commit 2e6927392272b3285d740fb61c8aeb4c6d9fb21a
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Mar 19 20:50:40 2021 -0400
ngl: Remove an unused field
We are ignoring the debug nodes, so the
debug_groups string chunk is unused.
gsk/ngl/gsknglcommandqueue.c | 4 ----
gsk/ngl/gsknglcommandqueueprivate.h | 3 ---
2 files changed, 7 deletions(-)
---
diff --git a/gsk/ngl/gsknglcommandqueue.c b/gsk/ngl/gsknglcommandqueue.c
index bebd315823..0fb56cfc50 100644
--- a/gsk/ngl/gsknglcommandqueue.c
+++ b/gsk/ngl/gsknglcommandqueue.c
@@ -424,8 +424,6 @@ gsk_ngl_command_queue_init (GskNglCommandQueue *self)
gsk_ngl_command_binds_init (&self->batch_binds, 1024);
gsk_ngl_command_uniforms_init (&self->batch_uniforms, 2048);
- self->debug_groups = g_string_chunk_new (4096);
-
gsk_ngl_buffer_init (&self->vertices, GL_ARRAY_BUFFER, sizeof (GskNglDrawVertex));
}
@@ -1215,8 +1213,6 @@ gsk_ngl_command_queue_end_frame (GskNglCommandQueue *self)
}
}
- g_string_chunk_clear (self->debug_groups);
-
self->batches.len = 0;
self->batch_binds.len = 0;
self->batch_uniforms.len = 0;
diff --git a/gsk/ngl/gsknglcommandqueueprivate.h b/gsk/ngl/gsknglcommandqueueprivate.h
index 9a35326cee..e51d1abb46 100644
--- a/gsk/ngl/gsknglcommandqueueprivate.h
+++ b/gsk/ngl/gsknglcommandqueueprivate.h
@@ -225,9 +225,6 @@ struct _GskNglCommandQueue
*/
GskNglCommandUniforms batch_uniforms;
- /* String storage for debug groups */
- GStringChunk *debug_groups;
-
/* Discovered max texture size when loading the command queue so that we
* can either scale down or slice textures to fit within this size. Assumed
* to be both height and width.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]