Commit cc231c9f authored by Alexander Barkov's avatar Alexander Barkov

A cleanup for 2a33d248

- Removing the unused "THD*" paramer from Lex_ident_sys_st::to_size_number()
- Removing redundant #include for "sql_tvc.h" and "vers_utils.h"
parent d69cc730
......@@ -7980,7 +7980,7 @@ bool Lex_ident_sys_st::convert(THD *thd,
}
bool Lex_ident_sys_st::to_size_number(THD *thd, ulonglong *to) const
bool Lex_ident_sys_st::to_size_number(ulonglong *to) const
{
ulonglong number;
uint text_shift_number= 0;
......
......@@ -143,7 +143,7 @@ struct Lex_ident_sys_st: public LEX_CSTRING
bool convert(THD *thd, const LEX_CSTRING *str, CHARSET_INFO *cs);
bool copy_or_convert(THD *thd, const Lex_ident_cli_st *str, CHARSET_INFO *cs);
bool is_null() const { return str == NULL; }
bool to_size_number(THD *thd, ulonglong *to) const;
bool to_size_number(ulonglong *to) const;
};
......
......@@ -67,8 +67,6 @@
#include "lex_token.h"
#include "sql_lex.h"
#include "sql_sequence.h"
#include "sql_tvc.h"
#include "vers_utils.h"
#include "my_base.h"
/* this is to get the bison compilation windows warnings out */
......@@ -5142,7 +5140,7 @@ size_number:
real_ulonglong_num { $$= $1;}
| IDENT_sys
{
if ($1.to_size_number(thd, &$$))
if ($1.to_size_number(&$$))
MYSQL_YYABORT;
}
;
......
......@@ -67,8 +67,6 @@
#include "lex_token.h"
#include "sql_lex.h"
#include "sql_sequence.h"
#include "sql_tvc.h"
#include "vers_utils.h"
#include "my_base.h"
/* this is to get the bison compilation windows warnings out */
......@@ -5100,7 +5098,7 @@ size_number:
real_ulonglong_num { $$= $1;}
| IDENT_sys
{
if ($1.to_size_number(thd, &$$))
if ($1.to_size_number(&$$))
MYSQL_YYABORT;
}
;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment