Skip to content

Commit

Permalink
hash-sets: use push-unsafe from hashtables.private.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Mar 11, 2013
1 parent ca4cb44 commit 64489d9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions core/hash-sets/hash-sets.factor
Expand Up @@ -109,16 +109,6 @@ M: hash-set cardinality
M: hash-set adjoin ( key hash-set -- )
dup ?grow-hash (adjoin) ;

<PRIVATE

: push-unsafe ( elt seq -- )
[ length ] keep
[ underlying>> set-array-nth ]
[ [ 1 fixnum+fast { array-capacity } declare ] dip length<< ]
2bi ; inline

PRIVATE>

M: hash-set members
[ array>> [ length ] keep ] [ cardinality <vector> ] bi [
[
Expand Down

0 comments on commit 64489d9

Please sign in to comment.