From 52e7016248d3e3f80c6a912ddc0399a15d868efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Wed, 20 Sep 2023 08:36:30 +0300 Subject: [PATCH] Remove dead code This fixes up commmit ed20e5b111c32e0913d789f8c8b9fc2d8b2b40a2 which fixed up the merge commit 202316a38fef8b9042e03ddf828e394f32cc51a2 --- storage/innobase/include/hash0hash.h | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/storage/innobase/include/hash0hash.h b/storage/innobase/include/hash0hash.h index 6eb5bb3f183..867ad9e0109 100644 --- a/storage/innobase/include/hash0hash.h +++ b/storage/innobase/include/hash0hash.h @@ -47,25 +47,6 @@ struct hash_cell_t insert.*next= nullptr; *after= &insert; } - - /** Insert an element after another. - @tparam T type of the element - @param after the element after which to insert - @param insert the being-inserted element - @param next the next-element pointer in T */ - template - void insert_after(T &after, T &insert, T *T::*next) - { -#ifdef UNIV_DEBUG - for (const T *c= static_cast(node); c; c= c->*next) - if (c == &after) - goto found; - ut_error; - found: -#endif - insert.*next= after.*next; - after.*next= &insert; - } }; /*******************************************************************//**