Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Revert "Hack fix Issue 10380 - [AA] Wrong code using associative arra…
Browse files Browse the repository at this point in the history
…y as key type in associative array"

This reverts commit 33ea0c5.
  • Loading branch information
denis-sh committed May 31, 2014
1 parent 2b31093 commit 1b40f86
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/object_.d
Expand Up @@ -636,13 +636,6 @@ class TypeInfo_AssociativeArray : TypeInfo
return !!_aaEqual(this, *cast(const void**) p1, *cast(const void**) p2);
}

override int compare(in void* p1, in void* p2) const
{
// This is a hack to fix Issue 10380 because AA uses
// `compare` instead of `equals`.
return !equals(p1, p2);
}

override hash_t getHash(in void* p) nothrow @trusted const
{
return _aaGetHash(cast(void*)p, this);
Expand Down

0 comments on commit 1b40f86

Please sign in to comment.