Commit f06060f5 authored by Marko Mäkelä's avatar Marko Mäkelä

Cleanup: Remove the function dict_remove_db_name()

parent 024a18db
......@@ -185,21 +185,6 @@ dict_tables_have_same_db(
return(FALSE);
}
/********************************************************************//**
Return the end of table name where we have removed dbname and '/'.
@return table name */
const char*
dict_remove_db_name(
/*================*/
const char* name) /*!< in: table name in the form
dbname '/' tablename */
{
const char* s = strchr(name, '/');
ut_a(s);
return(s + 1);
}
/** Open a persistent table.
@param[in] table_id persistent table identifier
@param[in] ignore_err errors to ignore
......
......@@ -101,15 +101,9 @@ dict_table_is_partition(const dict_table_t* table)
return (strstr(table->name.m_name, "#p#")
|| strstr(table->name.m_name, "#P#"));
}
/********************************************************************//**
Return the end of table name where we have removed dbname and '/'.
@return table name */
const char*
dict_remove_db_name(
/*================*/
const char* name) /*!< in: table name in the form
dbname '/' tablename */
MY_ATTRIBUTE((nonnull, warn_unused_result));
#define dict_remove_db_name(name) \
(table_name_t{const_cast<char*>(name)}.dbend() + 1)
/** Operation to perform when opening a table */
enum dict_table_op_t {
......
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