diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-02-27 15:14:47 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-02-27 17:15:20 +0200 |
commit | dee6fb356b2c38a8dad2a4f2d21504149f9a1917 (patch) | |
tree | 0b23b803889548b4aaba98182705006055ca4994 | |
parent | e15ae1cfe1ca954182ab071fc948d6800ef42971 (diff) | |
download | mariadb-git-dee6fb356b2c38a8dad2a4f2d21504149f9a1917.tar.gz |
MDEV-12353 Cleanup: Remove page_rec_get_base_extra_size()
The function page_rec_get_base_extra_size() became dead code in
commit 08ba388713946c03aa591899cd3a446a6202f882.
-rw-r--r-- | storage/innobase/include/page0page.h | 9 | ||||
-rw-r--r-- | storage/innobase/include/page0page.ic | 15 |
2 files changed, 0 insertions, 24 deletions
diff --git a/storage/innobase/include/page0page.h b/storage/innobase/include/page0page.h index ddd5d83892e..1a67b28707e 100644 --- a/storage/innobase/include/page0page.h +++ b/storage/innobase/include/page0page.h @@ -869,15 +869,6 @@ page_get_free_space_of_empty( /*=========================*/ ulint comp) /*!< in: nonzero=compact page format */ MY_ATTRIBUTE((const)); -/**********************************************************//** -Returns the base extra size of a physical record. This is the -size of the fixed header, independent of the record size. -@return REC_N_NEW_EXTRA_BYTES or REC_N_OLD_EXTRA_BYTES */ -UNIV_INLINE -ulint -page_rec_get_base_extra_size( -/*=========================*/ - const rec_t* rec); /*!< in: physical record */ /************************************************************//** Returns the sum of the sizes of the records in the record list excluding the infimum and supremum records. diff --git a/storage/innobase/include/page0page.ic b/storage/innobase/include/page0page.ic index db8dcc88cf2..90a591d4180 100644 --- a/storage/innobase/include/page0page.ic +++ b/storage/innobase/include/page0page.ic @@ -563,21 +563,6 @@ page_rec_get_prev( return((rec_t*) page_rec_get_prev_const(rec)); } -/**********************************************************//** -Returns the base extra size of a physical record. This is the -size of the fixed header, independent of the record size. -@return REC_N_NEW_EXTRA_BYTES or REC_N_OLD_EXTRA_BYTES */ -UNIV_INLINE -ulint -page_rec_get_base_extra_size( -/*=========================*/ - const rec_t* rec) /*!< in: physical record */ -{ - compile_time_assert(REC_N_NEW_EXTRA_BYTES + 1 - == REC_N_OLD_EXTRA_BYTES); - return(REC_N_NEW_EXTRA_BYTES + (ulint) !page_rec_is_comp(rec)); -} - #endif /* UNIV_INNOCHECKSUM */ /************************************************************//** |