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

dict_table_t::read_metadata_blob(): Remove (unused)

parent 80aefe16
......@@ -1504,34 +1504,6 @@ void dict_table_t::instant_column(const dict_table_t& table, const ulint* map)
}
}
/** Read the metadata blob and fill the non primary fields,
non-drop nullable fields and fill the drop columns in the vector.
@param[in] blob_data blob data which contains
drop column information
@param[out] non_pk_fields number of non-primary key fields
@param[out] dropped_col_list dropped column list */
void dict_table_t::read_metadata_blob(
byte* blob_data,
ulint* non_pk_fields,
std::vector<ulint>& dropped_col_list)
{
*non_pk_fields = mach_read_from_4(blob_data);
const byte* field_data = blob_data + INSTANT_NON_PK_FIELDS_LEN;
for (ulint i = 0; i < *non_pk_fields; i++) {
unsigned col_no = mach_read_from_2(field_data);
col_no >>= INSTANT_FIELD_COL_NO_SHIFT;
if (col_no == 0) {
dropped_col_list.push_back(i);
}
field_data += INSTANT_FIELD_LEN;
}
}
/** Construct the blob with contains the non-primary key for
the clustered index.
@param[in,out] heap memory heap to allocate the blob
......
......@@ -1590,17 +1590,6 @@ struct dict_table_t {
return n_drop_cols;
}
/** Read the metadata blob and fill the non primary fields,
non-drop nullable fields and fill the drop columns in the
vector.
@param[in] blob_data blob data which contains
drop column information
@param[out] non_pk_fields number of non-primary key fields
@param[out] dropped_col_list dropped column list */
void read_metadata_blob(
byte* blob_data,
ulint* non_pk_fields,
std::vector<ulint>& dropped_col_list);
/** Construct the blob with contains the non-primary key for
the clustered index.
......
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