Commit 5abd7f4e authored by marko's avatar marko

Remove unused code.

univ.i: Do not #define YYDEBUG, because it is only useful for debugging
the grammar of the Bison-generated InnoDB SQL parser.

row_build(): Remove type==ROW_COPY_ALSO_EXTERNALS, because it is never
passed.
parent 21e8ab69
...@@ -80,10 +80,9 @@ dtuple_t* ...@@ -80,10 +80,9 @@ dtuple_t*
row_build( row_build(
/*======*/ /*======*/
/* out, own: row built; see the NOTE below! */ /* out, own: row built; see the NOTE below! */
ulint type, /* in: ROW_COPY_POINTERS, ROW_COPY_DATA, or ulint type, /* in: ROW_COPY_POINTERS or ROW_COPY_DATA;
ROW_COPY_ALSO_EXTERNALS, the latter copies also the data fields to
the two last copy also the data fields to heap while the first only places pointers to
heap as the first only places pointers to
data fields on the index page, and thus is data fields on the index page, and thus is
more efficient */ more efficient */
dict_index_t* index, /* in: clustered index */ dict_index_t* index, /* in: clustered index */
...@@ -235,7 +234,6 @@ row_search_index_entry( ...@@ -235,7 +234,6 @@ row_search_index_entry(
#define ROW_COPY_DATA 1 #define ROW_COPY_DATA 1
#define ROW_COPY_POINTERS 2 #define ROW_COPY_POINTERS 2
#define ROW_COPY_ALSO_EXTERNALS 3
/* The allowed latching order of index records is the following: /* The allowed latching order of index records is the following:
(1) a secondary index record -> (1) a secondary index record ->
......
...@@ -96,8 +96,6 @@ memory is read outside the allocated blocks. */ ...@@ -96,8 +96,6 @@ memory is read outside the allocated blocks. */
#define UNIV_BTR_DEBUG #define UNIV_BTR_DEBUG
#define UNIV_LIGHT_MEM_DEBUG #define UNIV_LIGHT_MEM_DEBUG
#define YYDEBUG 1
#ifdef HAVE_purify #ifdef HAVE_purify
/* The following sets all new allocated memory to zero before use: /* The following sets all new allocated memory to zero before use:
this can be used to eliminate unnecessary Purify warnings, but note that this can be used to eliminate unnecessary Purify warnings, but note that
......
...@@ -170,10 +170,9 @@ dtuple_t* ...@@ -170,10 +170,9 @@ dtuple_t*
row_build( row_build(
/*======*/ /*======*/
/* out, own: row built; see the NOTE below! */ /* out, own: row built; see the NOTE below! */
ulint type, /* in: ROW_COPY_POINTERS, ROW_COPY_DATA, or ulint type, /* in: ROW_COPY_POINTERS or ROW_COPY_DATA;
ROW_COPY_ALSO_EXTERNALS, the latter copies also the data fields to
the two last copy also the data fields to heap while the first only places pointers to
heap as the first only places pointers to
data fields on the index page, and thus is data fields on the index page, and thus is
more efficient */ more efficient */
dict_index_t* index, /* in: clustered index */ dict_index_t* index, /* in: clustered index */
...@@ -245,13 +244,6 @@ row_build( ...@@ -245,13 +244,6 @@ row_build(
dict_col_get_no(col)); dict_col_get_no(col));
field = rec_get_nth_field(rec, offsets, i, &len); field = rec_get_nth_field(rec, offsets, i, &len);
if (type == ROW_COPY_ALSO_EXTERNALS
&& rec_offs_nth_extern(offsets, i)) {
field = btr_rec_copy_externally_stored_field
(rec, offsets, i, &len, heap);
}
dfield_set_data(dfield, field, len); dfield_set_data(dfield, field, len);
} }
} }
......
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