1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

remove dead code (#450)

* remove dead code

* rename method to reduce confusion
This commit is contained in:
Eugene Kosov
2017-09-20 15:07:06 +03:00
committed by Sergey Vojtovich
parent 7e4a3c29e1
commit d176be8aea
3 changed files with 5 additions and 31 deletions

View File

@ -681,7 +681,6 @@ void LEX::start(THD *thd_arg)
context_stack.empty();
unit.init_query();
unit.init_select();
select_lex.linkage= UNSPECIFIED_TYPE;
/* 'parent_lex' is used in init_query() so it must be before it. */
select_lex.parent_lex= this;
@ -2137,7 +2136,7 @@ void trim_whitespace(CHARSET_INFO *cs, LEX_CSTRING *str, uint *prefix_length)
st_select_lex structures initialisations
*/
void st_select_lex_node::init_query()
void st_select_lex_node::init_query_common()
{
options= 0;
sql_cache= SQL_CACHE_UNSPECIFIED;
@ -2146,13 +2145,9 @@ void st_select_lex_node::init_query()
uncacheable= 0;
}
void st_select_lex_node::init_select()
{
}
void st_select_lex_unit::init_query()
{
st_select_lex_node::init_query();
init_query_common();
linkage= GLOBAL_OPTIONS_TYPE;
select_limit_cnt= HA_POS_ERROR;
offset_limit_cnt= 0;
@ -2178,7 +2173,7 @@ void st_select_lex_unit::init_query()
void st_select_lex::init_query()
{
st_select_lex_node::init_query();
init_query_common();
table_list.empty();
top_join_list.empty();
join_list= &top_join_list;
@ -2233,7 +2228,6 @@ void st_select_lex::init_query()
void st_select_lex::init_select()
{
st_select_lex_node::init_select();
sj_nests.empty();
sj_subselects.empty();
group_list.empty();
@ -2556,15 +2550,6 @@ bool st_select_lex::mark_as_dependent(THD *thd, st_select_lex *last,
return FALSE;
}
bool st_select_lex_node::inc_in_sum_expr() { return 1; }
uint st_select_lex_node::get_in_sum_expr() { return 0; }
TABLE_LIST* st_select_lex_node::get_table_list() { return 0; }
List<Item>* st_select_lex_node::get_item_list() { return 0; }
ulong st_select_lex_node::get_table_join_options()
{
return 0;
}
/*
prohibit using LIMIT clause
*/