From 6c6ca84c43c4da9f8cdaa044e5dac13b83af928e Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 22 Nov 1999 10:53:11 +0000 Subject: [PATCH] [project @ 1999-11-22 10:53:11 by simonmar] remove some irrelevant code --- ghc/lib/std/IO.lhs | 12 ------------ 1 file changed, 12 deletions(-) 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 -- 1.7.10.4