From 9de432f7f2989a6ad13024404b2290c529a82858 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Sun, 31 Jul 2022 22:13:34 -0400 Subject: [PATCH] [psaux] Remove unused structure field. * include/freetype/internal/psaux.h (PS_TableRec): Remove `num_elems`. * src/psaux/psobjs.c (ps_table_new): Remoove its initialization. --- include/freetype/internal/psaux.h | 4 ---- src/psaux/psobjs.c | 1 - 2 files changed, 5 deletions(-) diff --git a/include/freetype/internal/psaux.h b/include/freetype/internal/psaux.h index 48ec1df96..df04ca040 100644 --- a/include/freetype/internal/psaux.h +++ b/include/freetype/internal/psaux.h @@ -132,9 +132,6 @@ FT_BEGIN_HEADER * max_elems :: * The maximum number of elements in table. * - * num_elems :: - * The current number of elements in table. - * * elements :: * A table of element addresses within the block. * @@ -155,7 +152,6 @@ FT_BEGIN_HEADER FT_ULong init; FT_Int max_elems; - FT_Int num_elems; FT_Byte** elements; /* addresses of table elements */ FT_UInt* lengths; /* lengths of table elements */ diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c index 371e53802..703567f7e 100644 --- a/src/psaux/psobjs.c +++ b/src/psaux/psobjs.c @@ -84,7 +84,6 @@ table->max_elems = count; table->init = 0xDEADBEEFUL; - table->num_elems = 0; table->block = NULL; table->capacity = 0; table->cursor = 0;