MDEV-12270 Port MySQL 8.0 Bug#21141390 REMOVE UNUSED FUNCTIONS AND CONVERT GLOBAL SYMBOLS TO STATIC

InnoDB defines some functions that are not called at all.
Other functions are called, but only from the same compilation unit.

Remove some function declarations and definitions, and add 'static'
keywords. Some symbols must be kept for separately compiled tools,
such as innochecksum.
This commit is contained in:
Marko Mäkelä 2015-05-26 10:01:12 +03:00 committed by Marko Mäkelä
commit 97acc4a1c3
78 changed files with 730 additions and 2912 deletions

View file

@ -1129,6 +1129,15 @@ opt_clust_access(
}
}
#ifdef UNIV_SQL_DEBUG
/** Print info of a query plan.
@param[in,out] sel_node select node */
static
void
opt_print_query_plan(
sel_node_t* sel_node);
#endif
/*******************************************************************//**
Optimizes a select. Decides which indexes to tables to use. The tables
are accessed in the order that they were written to the FROM part in the
@ -1207,13 +1216,13 @@ opt_search_plan(
#endif
}
#if 1//def UNIV_SQL_DEBUG
/********************************************************************//**
Prints info of a query plan. */
#ifdef UNIV_SQL_DEBUG
/** Print info of a query plan.
@param[in,out] sel_node select node */
static
void
opt_print_query_plan(
/*=================*/
sel_node_t* sel_node) /*!< in: select node */
sel_node_t* sel_node)
{
plan_t* plan;
ulint n_fields;