mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-5433 select_result::send_error() is unused
remove dead code
This commit is contained in:
@@ -2439,12 +2439,6 @@ select_result::select_result()
|
||||
thd=current_thd;
|
||||
}
|
||||
|
||||
void select_result::send_error(uint errcode,const char *err)
|
||||
{
|
||||
my_message(errcode, err, MYF(0));
|
||||
}
|
||||
|
||||
|
||||
void select_result::cleanup()
|
||||
{
|
||||
/* do nothing */
|
||||
@@ -2586,20 +2580,6 @@ bool select_send::send_eof()
|
||||
Handling writing to file
|
||||
************************************************************************/
|
||||
|
||||
void select_to_file::send_error(uint errcode,const char *err)
|
||||
{
|
||||
my_message(errcode, err, MYF(0));
|
||||
if (file > 0)
|
||||
{
|
||||
(void) end_io_cache(&cache);
|
||||
mysql_file_close(file, MYF(0));
|
||||
/* Delete file on error */
|
||||
mysql_file_delete(key_select_to_file, path, MYF(0));
|
||||
file= -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool select_to_file::send_eof()
|
||||
{
|
||||
int error= MY_TEST(end_io_cache(&cache));
|
||||
|
Reference in New Issue
Block a user