diff --git a/src/SDL_hashtable.c b/src/SDL_hashtable.c index e2714d1321..5646a3717f 100644 --- a/src/SDL_hashtable.c +++ b/src/SDL_hashtable.c @@ -116,16 +116,6 @@ SDL_bool SDL_FindInHashTable(const SDL_HashTable *table, const void *key, const if (_value != NULL) { *_value = i->value; } - - /* Matched! Move to the front of list for faster lookup next time. - (stackable tables have to remain in the same order, though!) */ - if ((!table->stackable) && (prev != NULL)) { - SDL_assert(prev->next == i); - prev->next = i->next; - i->next = table->table[hash]; - table->table[hash] = i; - } - return SDL_TRUE; }