diff options
author | marko@hundin.mysql.fi <> | 2004-03-31 10:58:50 +0300 |
---|---|---|
committer | marko@hundin.mysql.fi <> | 2004-03-31 10:58:50 +0300 |
commit | 16ac732cb93a75a071f0a44dd3e4ce6d423092b2 (patch) | |
tree | 19db31d7dd0efe88397a0cab75851aaf30a60584 /innobase/ha | |
parent | 3476db87a0d1f8c50a95bb36723e7569792941a0 (diff) | |
download | mariadb-git-16ac732cb93a75a071f0a44dd3e4ce6d423092b2.tar.gz |
InnoDB: Remove unused hash table code and parameters
Diffstat (limited to 'innobase/ha')
-rw-r--r-- | innobase/ha/ha0ha.c | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/innobase/ha/ha0ha.c b/innobase/ha/ha0ha.c index ad833312963..483fac4d8cf 100644 --- a/innobase/ha/ha0ha.c +++ b/innobase/ha/ha0ha.c @@ -205,7 +205,7 @@ ha_remove_all_nodes_to_page( node = ha_chain_get_first(table, fold); } else { - node = ha_chain_get_next(table, node); + node = ha_chain_get_next(node); } } @@ -216,7 +216,7 @@ ha_remove_all_nodes_to_page( while (node) { ut_a(buf_frame_align(ha_node_get_data(node)) != page); - node = ha_chain_get_next(table, node); + node = ha_chain_get_next(node); } } @@ -269,12 +269,6 @@ ha_print_info( hash_table_t* table) /* in: hash table */ { hash_cell_t* cell; -/* - ha_node_t* node; - ulint len = 0; - ulint max_len = 0; - ulint nodes = 0; -*/ ulint cells = 0; ulint n_bufs; ulint i; @@ -290,27 +284,6 @@ ha_print_info( if (cell->node) { cells++; -/* - len = 0; - - node = cell->node; - - for (;;) { - len++; - nodes++; - - if (ha_chain_get_next(table, node) == NULL) { - - break; - } - - node = node->next; - } - - if (len > max_len) { - max_len = len; - } -*/ } } |