From: simonmar Date: Mon, 22 Nov 1999 10:53:11 +0000 (+0000) Subject: [project @ 1999-11-22 10:53:11 by simonmar] X-Git-Tag: Approximately_9120_patches~5534 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=6c6ca84c43c4da9f8cdaa044e5dac13b83af928e;p=ghc-hetmet.git [project @ 1999-11-22 10:53:11 by simonmar] remove some irrelevant code --- diff --git a/ghc/lib/std/IO.lhs b/ghc/lib/std/IO.lhs index c80aa7e..7f0eb6e 100644 --- a/ghc/lib/std/IO.lhs +++ b/ghc/lib/std/IO.lhs @@ -428,9 +428,6 @@ writeLines obj buf bufLen initPos s = shoveString n ls = case ls of [] -> - if n == 0 then - setBufWPtr obj 0{-new pos-} - else do {- At the end of a buffer write, update the buffer position in the underlying file object, so that if the handle @@ -476,9 +473,6 @@ writeLines obj buf (I# bufLen) (I# initPos#) s = shoveString n ls = case ls of [] -> - if n ==# 0# then - setBufWPtr obj 0 - else do {- At the end of a buffer write, update the buffer position in the underlying file object, so that if the handle @@ -521,9 +515,6 @@ writeBlocks obj buf bufLen initPos s = shoveString n ls = case ls of [] -> - if n == 0 then - setBufWPtr obj (0::Int) - else do {- At the end of a buffer write, update the buffer position in the underlying file object, so that if the handle @@ -570,9 +561,6 @@ writeBlocks obj buf (I# bufLen) (I# initPos#) s = shoveString n ls = case ls of [] -> - if n ==# 0# then - setBufWPtr obj (0::Int) - else do {- At the end of a buffer write, update the buffer position in the underlying file object, so that if the handle