summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2019-05-01 15:22:22 +0400
committerSergey Vojtovich <svoj@mariadb.org>2019-05-09 11:13:44 +0400
commit410585ca639dc6b40b56d8ec2b7857a9ca6b46f1 (patch)
tree3581f3c716e149042f0c54221157c8ee7366b837 /storage
parentd0b73fb8d3ae4ef9ec2cde945fa6ada512f762fe (diff)
downloadmariadb-git-410585ca639dc6b40b56d8ec2b7857a9ca6b46f1.tar.gz
Removed dead code
Diffstat (limited to 'storage')
-rw-r--r--storage/xtradb/handler/ha_innodb.cc57
1 files changed, 0 insertions, 57 deletions
diff --git a/storage/xtradb/handler/ha_innodb.cc b/storage/xtradb/handler/ha_innodb.cc
index 37d6614a8b6..9784f6f68e3 100644
--- a/storage/xtradb/handler/ha_innodb.cc
+++ b/storage/xtradb/handler/ha_innodb.cc
@@ -961,20 +961,6 @@ innodb_empty_free_list_algorithm_allowed(
|| algorithm != SRV_EMPTY_FREE_LIST_BACKOFF);
}
-/** Get the list of foreign keys referencing a specified table
-table.
-@param thd The thread handle
-@param path Path to the table
-@param f_key_list[out] The list of foreign keys
-
-@return error code or zero for success */
-static
-int
-innobase_get_parent_fk_list(
- THD* thd,
- const char* path,
- List<FOREIGN_KEY_INFO>* f_key_list) __attribute__((unused));
-
/******************************************************************//**
Maps a MySQL trx isolation level code to the InnoDB isolation level code
@return InnoDB isolation level */
@@ -15202,49 +15188,6 @@ fill_foreign_key_list(THD* thd,
}
}
-/** Get the list of foreign keys referencing a specified table
-table.
-@param thd The thread handle
-@param path Path to the table
-@param f_key_list[out] The list of foreign keys
-
-@return error code or zero for success */
-static
-int
-innobase_get_parent_fk_list(
- THD* thd,
- const char* path,
- List<FOREIGN_KEY_INFO>* f_key_list)
-{
- ut_a(strlen(path) <= FN_REFLEN);
- char norm_name[FN_REFLEN + 1];
- normalize_table_name(norm_name, path);
-
- trx_t* parent_trx = check_trx_exists(thd);
- parent_trx->op_info = "getting list of referencing foreign keys";
- trx_search_latch_release_if_reserved(parent_trx);
-
- mutex_enter(&dict_sys->mutex);
-
- dict_table_t* table
- = dict_table_open_on_name(norm_name, TRUE, FALSE,
- static_cast<dict_err_ignore_t>(
- DICT_ERR_IGNORE_INDEX_ROOT
- | DICT_ERR_IGNORE_CORRUPT));
- if (!table) {
- mutex_exit(&dict_sys->mutex);
- return(HA_ERR_NO_SUCH_TABLE);
- }
-
- fill_foreign_key_list(thd, table, f_key_list);
-
- dict_table_close(table, TRUE, FALSE);
-
- mutex_exit(&dict_sys->mutex);
- parent_trx->op_info = "";
- return(0);
-}
-
/*******************************************************************//**
Gets the list of foreign keys in this table.
@return always 0, that is, always succeeds */