[commit: packages/bytestring] master, wip/nix-local-build: Cleanup whitespace and dead code (3d6d0f6)

git at git.haskell.org git at git.haskell.org
Tue May 3 22:44:05 UTC 2016


Repository : ssh://git@git.haskell.org/bytestring

On branches: master,wip/nix-local-build
Link       : http://git.haskell.org/packages/bytestring.git/commitdiff/3d6d0f60ac25736cc87a6f598886fe77e7b6ad90

>---------------------------------------------------------------

commit 3d6d0f60ac25736cc87a6f598886fe77e7b6ad90
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Thu Mar 24 12:24:12 2016 +0100

    Cleanup whitespace and dead code


>---------------------------------------------------------------

3d6d0f60ac25736cc87a6f598886fe77e7b6ad90
 Data/ByteString.hs       |  0
 Data/ByteString/Char8.hs | 22 ----------------------
 2 files changed, 22 deletions(-)

diff --git a/Data/ByteString/Char8.hs b/Data/ByteString/Char8.hs
index 2f7c250..1d35357 100644
--- a/Data/ByteString/Char8.hs
+++ b/Data/ByteString/Char8.hs
@@ -571,28 +571,6 @@ breakEnd :: (Char -> Bool) -> ByteString -> (ByteString, ByteString)
 breakEnd f = B.breakEnd (f . w2c)
 {-# INLINE breakEnd #-}
 
-{-
--- | 'breakChar' breaks its ByteString argument at the first occurence
--- of the specified Char. It is more efficient than 'break' as it is
--- implemented with @memchr(3)@. I.e.
--- 
--- > break (=='c') "abcd" == breakChar 'c' "abcd"
---
-breakChar :: Char -> ByteString -> (ByteString, ByteString)
-breakChar = B.breakByte . c2w
-{-# INLINE breakChar #-}
-
--- | 'spanChar' breaks its ByteString argument at the first
--- occurence of a Char other than its argument. It is more efficient
--- than 'span (==)'
---
--- > span  (=='c') "abcd" == spanByte 'c' "abcd"
---
-spanChar :: Char -> ByteString -> (ByteString, ByteString)
-spanChar = B.spanByte . c2w
-{-# INLINE spanChar #-}
--}
-
 -- | /O(n)/ Break a 'ByteString' into pieces separated by the byte
 -- argument, consuming the delimiter. I.e.
 --



More information about the ghc-commits mailing list