hashtables: remove 2hashtable (not really used).

db4
John Benediktsson 2016-03-03 14:36:48 -08:00
parent 9d563dc2fe
commit b75def3bfb
4 changed files with 12 additions and 12 deletions

View File

@ -65,9 +65,10 @@ IN: continuations.tests
SYMBOL: always-counter SYMBOL: always-counter
SYMBOL: error-counter SYMBOL: error-counter
0 always-counter H{
0 error-counter 2hashtable { always-counter 0 }
[ { error-counter 0 }
} [
[ ] [ always-counter inc ] [ error-counter inc ] cleanup [ ] [ always-counter inc ] [ error-counter inc ] cleanup

View File

@ -1,6 +1,6 @@
! Copyright (C) 2007, 2010 Doug Coleman, Slava Pestov. ! Copyright (C) 2007, 2010 Doug Coleman, Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: accessors continuations hashtables init kernel namespaces USING: accessors assocs continuations init kernel namespaces
sequences sets ; sequences sets ;
IN: destructors IN: destructors
@ -82,9 +82,9 @@ PRIVATE>
dup error-destructors get push ; inline dup error-destructors get push ; inline
: with-destructors ( quot -- ) : with-destructors ( quot -- )
V{ } clone always-destructors H{ } clone
V{ } clone error-destructors V{ } clone always-destructors pick set-at
2hashtable [ V{ } clone error-destructors pick set-at [
[ do-always-destructors ] [ do-always-destructors ]
[ do-error-destructors ] [ do-error-destructors ]
cleanup cleanup

View File

@ -150,9 +150,6 @@ M: hashtable set-at
[ 2dup hash@ set-nth-pair ] keep [ 2dup hash@ set-nth-pair ] keep
hashtable boa ; inline hashtable boa ; inline
: 2hashtable ( value0 key0 value1 key1 -- hash )
H{ } clone [ set-at ] keep [ set-at ] keep ; inline
<PRIVATE <PRIVATE
: collect-pairs ( hash quot: ( key value -- elt ) -- seq ) : collect-pairs ( hash quot: ( key value -- elt ) -- seq )

View File

@ -57,8 +57,10 @@ IN: io.pathnames.tests
{ } [ 2 [ "touch-twice-test" temp-file touch-file ] times ] unit-test { } [ 2 [ "touch-twice-test" temp-file touch-file ] times ] unit-test
! aum's bug ! aum's bug
"." current-directory H{
".." "resource-path" 2hashtable [ { current-directory "." }
{ "resource-path" ".." }
} [
[ "../core/bootstrap/stage2.factor" ] [ "../core/bootstrap/stage2.factor" ]
[ "resource:core/bootstrap/stage2.factor" absolute-path ] [ "resource:core/bootstrap/stage2.factor" absolute-path ]
unit-test unit-test