diff --git a/extra/io/ports/ports.factor b/extra/io/ports/ports.factor index b761ecaf5b..f54cd2e9b3 100755 --- a/extra/io/ports/ports.factor +++ b/extra/io/ports/ports.factor @@ -98,11 +98,9 @@ TUPLE: output-port < buffered-port ; : ( handle -- output-port ) output-port ; -: can-write? ( len buffer -- ? ) - [ buffer-fill + ] keep buffer-capacity <= ; - : wait-to-write ( len port -- ) - tuck buffer>> can-write? [ drop ] [ stream-flush ] if ; + tuck buffer>> buffer-capacity <= + [ drop ] [ stream-flush ] if ; M: output-port stream-write1 dup check-disposed