From 29d67d051a3f6b252c0ab3c3720e6467e4f9a7d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Mon, 11 Nov 2019 13:36:21 +0200 Subject: Cleanup btr_page_get_prev(), btr_page_get_next() Remove the redundant parameter mtr_t*. Make use of page_has_prev(), page_has_next() whenever possible. --- storage/innobase/include/btr0btr.ic | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'storage/innobase/include/btr0btr.ic') diff --git a/storage/innobase/include/btr0btr.ic b/storage/innobase/include/btr0btr.ic index a2f2ec885d9..f4fcd9f4194 100644 --- a/storage/innobase/include/btr0btr.ic +++ b/storage/innobase/include/btr0btr.ic @@ -160,23 +160,6 @@ btr_page_set_level( } } -/********************************************************//** -Gets the next index page number. -@return next page number */ -UNIV_INLINE -ulint -btr_page_get_next( -/*==============*/ - const page_t* page, /*!< in: index page */ - mtr_t* mtr MY_ATTRIBUTE((unused))) - /*!< in: mini-transaction handle */ -{ - ut_ad(page != NULL); - ut_ad(mtr != NULL); - - return(mach_read_from_4(page + FIL_PAGE_NEXT)); -} - /********************************************************//** Sets the next index page field. */ UNIV_INLINE @@ -200,22 +183,6 @@ btr_page_set_next( } } -/********************************************************//** -Gets the previous index page number. -@return prev page number */ -UNIV_INLINE -ulint -btr_page_get_prev( -/*==============*/ - const page_t* page, /*!< in: index page */ - mtr_t* mtr MY_ATTRIBUTE((unused))) /*!< in: mini-transaction handle */ -{ - ut_ad(page != NULL); - ut_ad(mtr != NULL); - - return(mach_read_from_4(page + FIL_PAGE_PREV)); -} - /********************************************************//** Sets the previous index page field. */ UNIV_INLINE -- cgit v1.2.1