[Commits] 2158de88659: Remove unused variables.

marko.makela at mariadb.com marko.makela at mariadb.com
Thu Mar 9 11:26:36 EET 2017


revision-id: 2158de88659892bcd723fb5c3c722d8b2ed63ce2 (mariadb-10.0.30-6-g2158de88659)
parent(s): 9fe92a9770a801c4cd36390620486be4cb06752b
author: Marko Mäkelä
committer: Marko Mäkelä
timestamp: 2017-03-09 11:26:36 +0200
message:

Remove unused variables.

---
 sql/handler.cc                   | 1 -
 storage/myisam/mi_delete_table.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/sql/handler.cc b/sql/handler.cc
index d75d3e3ef21..8b0f885bb63 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -3841,7 +3841,6 @@ int handler::delete_table(const char *name)
   int saved_error= 0;
   int error= 0;
   int enoent_or_zero;
-  char buff[FN_REFLEN];
 
   if (ht->discover_table)
     enoent_or_zero= 0; // the table may not exist in the engine, it's ok
diff --git a/storage/myisam/mi_delete_table.c b/storage/myisam/mi_delete_table.c
index a72a94b06d2..3422e6b045d 100644
--- a/storage/myisam/mi_delete_table.c
+++ b/storage/myisam/mi_delete_table.c
@@ -28,7 +28,6 @@
 
 int mi_delete_table(const char *name)
 {
-  int res;
   DBUG_ENTER("mi_delete_table");
 
 #ifdef EXTRA_DEBUG


More information about the commits mailing list