summaryrefslogtreecommitdiffstats
path: root/src/glx/x11
diff options
context:
space:
mode:
authorAdam Jackson <[email protected]>2008-07-08 11:07:32 -0400
committerAdam Jackson <[email protected]>2008-08-04 15:44:34 -0400
commit62fb5f7b9ab70017d5de6ab3d0886bc4cbdbc57f (patch)
treeeaf8caf3bcaf4a10be746bccbcd3a1fd8d54128d /src/glx/x11
parent61b3ce8f9787edd7d5678f87aa4c2a0a6f8c0e45 (diff)
Drop unused 'entries' field from __glxHashTable.
Diffstat (limited to 'src/glx/x11')
-rw-r--r--src/glx/x11/glxhash.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/glx/x11/glxhash.c b/src/glx/x11/glxhash.c
index 9ed04290329..b7b8fb27385 100644
--- a/src/glx/x11/glxhash.c
+++ b/src/glx/x11/glxhash.c
@@ -101,7 +101,6 @@ typedef struct __glxHashBucket {
typedef struct __glxHashTable *__glxHashTablePtr;
struct __glxHashTable {
unsigned long magic;
- unsigned long entries;
unsigned long hits; /* At top of linked list */
unsigned long partials; /* Not at top of linked list */
unsigned long misses; /* Not in table */
@@ -146,7 +145,6 @@ _X_HIDDEN __glxHashTable *__glxHashCreate(void)
table = HASH_ALLOC(sizeof(*table));
if (!table) return NULL;
table->magic = HASH_MAGIC;
- table->entries = 0;
table->hits = 0;
table->partials = 0;
table->misses = 0;
@@ -319,8 +317,8 @@ static void compute_dist(__glxHashTablePtr table)
int i;
__glxHashBucketPtr bucket;
- printf("Entries = %ld, hits = %ld, partials = %ld, misses = %ld\n",
- table->entries, table->hits, table->partials, table->misses);
+ printf("Hits = %ld, partials = %ld, misses = %ld\n",
+ table->hits, table->partials, table->misses);
clear_dist();
for (i = 0; i < HASH_SIZE; i++) {
bucket = table->buckets[i];