mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
Remove unused variable
This commit is contained in:
parent
21001c6df1
commit
1d30dfdc00
8 changed files with 0 additions and 13 deletions
|
@ -524,7 +524,6 @@ THR_LOCK_DATA **ha_heap::store_lock(THD *thd,
|
|||
|
||||
int ha_heap::delete_table(const char *name)
|
||||
{
|
||||
char buff[FN_REFLEN];
|
||||
int error= heap_delete_table(name);
|
||||
return error == ENOENT ? 0 : error;
|
||||
}
|
||||
|
|
|
@ -445,8 +445,6 @@ static my_bool init_handlerton(THD *unused1, st_plugin_int *plugin,
|
|||
int ha_init()
|
||||
{
|
||||
int error= 0;
|
||||
handlerton **types;
|
||||
show_table_alias_st *table_alias;
|
||||
total_ha= savepoint_alloc_size= 0;
|
||||
|
||||
if (ha_init_errors())
|
||||
|
|
|
@ -2028,7 +2028,6 @@ void Item_date_add_interval::fix_length_and_dec()
|
|||
|
||||
bool Item_date_add_interval::get_date(TIME *ltime, uint fuzzy_date)
|
||||
{
|
||||
long period,sign;
|
||||
INTERVAL interval;
|
||||
|
||||
if (args[0]->get_date(ltime, TIME_NO_ZERO_DATE) ||
|
||||
|
|
|
@ -468,7 +468,6 @@ int key_rec_cmp(void *key, byte *first_rec, byte *second_rec)
|
|||
do
|
||||
{
|
||||
Field *field= key_part->field;
|
||||
uint length;
|
||||
|
||||
if (key_part->null_bit)
|
||||
{
|
||||
|
|
|
@ -717,8 +717,6 @@ bool LOGGER::slow_log_print(THD *thd, const char *query, uint query_length,
|
|||
bool error= FALSE;
|
||||
Log_event_handler **current_handler= slow_log_handler_list;
|
||||
bool is_command= FALSE;
|
||||
|
||||
char message_buff[MAX_LOG_BUFFER_SIZE];
|
||||
char user_host_buff[MAX_USER_HOST_SIZE];
|
||||
|
||||
my_time_t current_time;
|
||||
|
|
|
@ -668,7 +668,6 @@ db_update_routine(THD *thd, int type, sp_name *name, st_sp_chistics *chistics)
|
|||
{
|
||||
TABLE *table;
|
||||
int ret;
|
||||
bool opened;
|
||||
DBUG_ENTER("db_update_routine");
|
||||
DBUG_PRINT("enter", ("type: %d name: %.*s",
|
||||
type, name->m_name.length, name->m_name.str));
|
||||
|
|
|
@ -124,7 +124,6 @@ void sp_cache_clear(sp_cache **cp)
|
|||
void sp_cache_insert(sp_cache **cp, sp_head *sp)
|
||||
{
|
||||
sp_cache *c;
|
||||
ulong v;
|
||||
|
||||
if (!(c= *cp))
|
||||
{
|
||||
|
|
|
@ -1408,10 +1408,7 @@ void update_non_unique_table_error(TABLE_LIST *update,
|
|||
|
||||
TABLE *find_temporary_table(THD *thd, const char *db, const char *table_name)
|
||||
{
|
||||
char key[MAX_DBKEY_LENGTH];
|
||||
uint key_length;
|
||||
TABLE_LIST table_list;
|
||||
TABLE *table;
|
||||
|
||||
table_list.db= (char*) db;
|
||||
table_list.table_name= (char*) table_name;
|
||||
|
@ -1939,7 +1936,6 @@ TABLE *open_table(THD *thd, TABLE_LIST *table_list, MEM_ROOT *mem_root,
|
|||
}
|
||||
else
|
||||
{
|
||||
TABLE_SHARE *share;
|
||||
/* Free cache if too big */
|
||||
while (open_cache.records > table_cache_size && unused_tables)
|
||||
VOID(hash_delete(&open_cache,(byte*) unused_tables)); /* purecov: tested */
|
||||
|
|
Loading…
Reference in a new issue