]> gitweb.factorcode.org Git - factor.git/commitdiff
windows.erros: Remove some unused error handling words.
authorDoug Coleman <doug.coleman@gmail.com>
Sat, 8 Jan 2022 21:23:59 +0000 (15:23 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Sat, 8 Jan 2022 21:23:59 +0000 (15:23 -0600)
basis/windows/errors/errors.factor

index feb933f2b1f4505f5f1158e869f6a57665a00fc6..b31104c4fed0b180a3813b8451856e7d88235cca 100644 (file)
@@ -733,13 +733,10 @@ ERROR: windows-error n string ;
 ! Note that win32-error* words throw GetLastError code.
 : win32-error ( -- ) GetLastError n>win32-error-check ;
 : win32-error=0/f ( n -- ) { 0 f } member? [ win32-error ] when ;
-: win32-error>0 ( n -- ) 0 > [ win32-error ] when ;
-: win32-error<0 ( n -- ) 0 < [ win32-error ] when ;
-: win32-error<>0 ( n -- ) zero? [ win32-error ] unless ;
 : win32-error=0/f-ignore-timeout ( n -- )
     { 0 f } member? [ win32-error-ignore-timeout ] when ;
 
-: win32-allow-errors ( n allowed -- n )
+: win32-allow-errors ( n allowed-seq -- n )
     GetLastError 2dup swap member? [
         2drop
     ] [
@@ -765,6 +762,3 @@ CONSTANT: expected-io-errors
 
 : expected-io-error ( error-code -- )
     expected-io-error? [ win32-error ] unless ;
-
-: io-error ( return-value -- )
-    { 0 f } member? [ GetLastError expected-io-error ] when ;