Skip to content

Commit 410585c

Browse files
committed
Removed dead code
1 parent d0b73fb commit 410585c

File tree

1 file changed

+0
-57
lines changed

1 file changed

+0
-57
lines changed

storage/xtradb/handler/ha_innodb.cc

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -961,20 +961,6 @@ innodb_empty_free_list_algorithm_allowed(
961961
|| algorithm != SRV_EMPTY_FREE_LIST_BACKOFF);
962962
}
963963

964-
/** Get the list of foreign keys referencing a specified table
965-
table.
966-
@param thd The thread handle
967-
@param path Path to the table
968-
@param f_key_list[out] The list of foreign keys
969-
970-
@return error code or zero for success */
971-
static
972-
int
973-
innobase_get_parent_fk_list(
974-
THD* thd,
975-
const char* path,
976-
List<FOREIGN_KEY_INFO>* f_key_list) __attribute__((unused));
977-
978964
/******************************************************************//**
979965
Maps a MySQL trx isolation level code to the InnoDB isolation level code
980966
@return InnoDB isolation level */
@@ -15202,49 +15188,6 @@ fill_foreign_key_list(THD* thd,
1520215188
}
1520315189
}
1520415190

15205-
/** Get the list of foreign keys referencing a specified table
15206-
table.
15207-
@param thd The thread handle
15208-
@param path Path to the table
15209-
@param f_key_list[out] The list of foreign keys
15210-
15211-
@return error code or zero for success */
15212-
static
15213-
int
15214-
innobase_get_parent_fk_list(
15215-
THD* thd,
15216-
const char* path,
15217-
List<FOREIGN_KEY_INFO>* f_key_list)
15218-
{
15219-
ut_a(strlen(path) <= FN_REFLEN);
15220-
char norm_name[FN_REFLEN + 1];
15221-
normalize_table_name(norm_name, path);
15222-
15223-
trx_t* parent_trx = check_trx_exists(thd);
15224-
parent_trx->op_info = "getting list of referencing foreign keys";
15225-
trx_search_latch_release_if_reserved(parent_trx);
15226-
15227-
mutex_enter(&dict_sys->mutex);
15228-
15229-
dict_table_t* table
15230-
= dict_table_open_on_name(norm_name, TRUE, FALSE,
15231-
static_cast<dict_err_ignore_t>(
15232-
DICT_ERR_IGNORE_INDEX_ROOT
15233-
| DICT_ERR_IGNORE_CORRUPT));
15234-
if (!table) {
15235-
mutex_exit(&dict_sys->mutex);
15236-
return(HA_ERR_NO_SUCH_TABLE);
15237-
}
15238-
15239-
fill_foreign_key_list(thd, table, f_key_list);
15240-
15241-
dict_table_close(table, TRUE, FALSE);
15242-
15243-
mutex_exit(&dict_sys->mutex);
15244-
parent_trx->op_info = "";
15245-
return(0);
15246-
}
15247-
1524815191
/*******************************************************************//**
1524915192
Gets the list of foreign keys in this table.
1525015193
@return always 0, that is, always succeeds */

0 commit comments

Comments
 (0)