diff --git a/handler/ha_innodb.cc b/handler/ha_innodb.cc index 02194f0ee1a..ec754a06024 100644 --- a/handler/ha_innodb.cc +++ b/handler/ha_innodb.cc @@ -8297,7 +8297,6 @@ ha_innobase::add_index( ulint num_created; ibool dict_locked = FALSE; ulint new_primary; - ibool new_unique = FALSE; ulint error; DBUG_ENTER("ha_innobase::add_index"); @@ -8410,11 +8409,6 @@ err_exit: goto error_handling; } - if (index_defs[i].ind_type & DICT_UNIQUE) { - - new_unique = TRUE; - } - num_created++; }