Remove dead code
This fixes up commmit ed20e5b111c32e0913d789f8c8b9fc2d8b2b40a2 which fixed up the merge commit 202316a38fef8b9042e03ddf828e394f32cc51a2
This commit is contained in:
parent
60b039a864
commit
52e7016248
@ -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<typename T>
|
||||
void insert_after(T &after, T &insert, T *T::*next)
|
||||
{
|
||||
#ifdef UNIV_DEBUG
|
||||
for (const T *c= static_cast<const T*>(node); c; c= c->*next)
|
||||
if (c == &after)
|
||||
goto found;
|
||||
ut_error;
|
||||
found:
|
||||
#endif
|
||||
insert.*next= after.*next;
|
||||
after.*next= &insert;
|
||||
}
|
||||
};
|
||||
|
||||
/*******************************************************************//**
|
||||
|
Loading…
x
Reference in New Issue
Block a user