]> gitweb.factorcode.org Git - factor.git/commitdiff
Remove useless with-scope and unneeded uses
authorSamuel Tardieu <sam@rfc1149.net>
Sat, 27 Dec 2008 22:13:03 +0000 (23:13 +0100)
committerSamuel Tardieu <sam@rfc1149.net>
Sat, 27 Dec 2008 22:13:03 +0000 (23:13 +0100)
basis/math/miller-rabin/miller-rabin.factor

index 374616ba40fb51d56aea0cf8e82b1d1c84b54938..8c237d0dc3656ee0f7fdc20f78872302985f9059 100755 (executable)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2008 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: combinators io locals kernel math math.functions
-math.ranges namespaces random sequences hashtables sets ;
+USING: combinators kernel locals math math.functions math.ranges
+random sequences sets ;
 IN: math.miller-rabin
 
 <PRIVATE
@@ -37,7 +37,7 @@ PRIVATE>
         { [ dup 1 <= ] [ 3drop f ] }
         { [ dup 2 = ] [ 3drop t ] }
         { [ dup even? ] [ 3drop f ] }
-        [ [ drop (miller-rabin) ] with-scope ]
+        [ drop (miller-rabin) ]
     } cond ;
 
 : miller-rabin ( n -- ? ) 10 miller-rabin* ;