Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackerpilot committed Nov 8, 2018
1 parent 7432553 commit f105d54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 2 additions & 8 deletions src/containers/hashset.d
Original file line number Diff line number Diff line change
Expand Up @@ -329,19 +329,13 @@ private:
static if (storeHash)
{
immutable Hash hash = node.items[i].hash;
version (BITMASK)
size_t index = (hash, Mask);
else
size_t index = hashToIndex(hash, buckets.length);
size_t index = hashToIndex(hash, buckets.length);
buckets[index].insert(ItemNode(hash, node.items[i].value));
}
else
{
immutable Hash hash = hashFunction(node.items[i].value);
version (BITMASK)
size_t index = (hash, mask);
else
size_t index = hashToIndex(hash, buckets.length);
size_t index = hashToIndex(hash, buckets.length);
buckets[index].insert(ItemNode(node.items[i].value));
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/containers/internal/hash.d
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
*/
module containers.internal.hash;

import std.conv : to;

static if (hash_t.sizeof == 4)
{
hash_t generateHash(T)(const T value)
Expand Down

0 comments on commit f105d54

Please sign in to comment.