summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2022-07-31 22:13:34 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2022-07-31 22:13:34 -0400
commit9de432f7f2989a6ad13024404b2290c529a82858 (patch)
tree73954c2eac2a7015a81e5b7f68656237c9a68fd1
parent919561ca8c2a7b245644767b49d08e638d34d4eb (diff)
downloadfreetype2-9de432f7f2989a6ad13024404b2290c529a82858.tar.gz
[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.
-rw-r--r--include/freetype/internal/psaux.h4
-rw-r--r--src/psaux/psobjs.c1
2 files changed, 0 insertions, 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;