]> gitweb.factorcode.org Git - factor.git/commitdiff
namespaces: remove unused with-variable-{on/off}
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 1 Aug 2022 02:39:17 +0000 (19:39 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 1 Aug 2022 02:39:17 +0000 (19:39 -0700)
core/namespaces/namespaces-tests.factor
core/namespaces/namespaces.factor

index 7ef7502fc54e2c2a47c6327af4bd249a7e9305d3..48f3b1cf1256b221b133efdc9526cb1f330b6b39 100644 (file)
@@ -38,7 +38,3 @@ SYMBOL: toggle-test
 
 { t } [ [ test-initialize get-global ] { at* set-at } inlined? ] unit-test
 { t } [ [ test-initialize set-global ] { at* set-at } inlined? ] unit-test
-
-SYMBOL: bool-test
-{ t } [ bool-test [ bool-test get ] with-variable-on ] unit-test
-{ f } [ bool-test [ bool-test get ] with-variable-off ] unit-test
index b8486750b5766fe9aaf8032d24ff6aa74fe92b22..76dd62430714b2ede36ea9d0564f78d765383e42 100644 (file)
@@ -67,6 +67,4 @@ PRIVATE>
 : with-variables ( ns quot -- ) swap >n call ndrop ; inline
 : with-scope ( quot -- ) 5 <hashtable> swap with-variables ; inline
 : with-variable ( value key quot -- ) [ associate ] dip with-variables ; inline
-: with-variable-on ( key quot -- ) [ t ] 2dip with-variable ; inline
-: with-variable-off ( key quot -- ) [ f ] 2dip with-variable ; inline
 : with-global ( quot -- ) [ global ] dip with-variables ; inline