From 499ae3d7149c98e3c4d72dbd348094958cdebbc7 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Tue, 25 Jan 2011 15:46:29 +0100 Subject: Battery: unnecessary external calls to /usr/bin/cat removed --- src/Plugins/Monitors/Common.hs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/Plugins/Monitors/Common.hs') diff --git a/src/Plugins/Monitors/Common.hs b/src/Plugins/Monitors/Common.hs index cc1a6a7..27ab41c 100644 --- a/src/Plugins/Monitors/Common.hs +++ b/src/Plugins/Monitors/Common.hs @@ -53,7 +53,6 @@ module Plugins.Monitors.Common ( -- * Threaded Actions -- $thread , doActionTwiceWithDelay - , catRead ) where @@ -67,7 +66,6 @@ import Numeric import Text.ParserCombinators.Parsec import System.Console.GetOpt import Control.Exception (SomeException,handle) -import System.Process (readProcess) import Plugins -- $monitor @@ -441,6 +439,3 @@ getData action var d = do threadDelay d s <- action modifyMVar_ var (\_ -> return $! s) - -catRead :: FilePath -> IO B.ByteString -catRead file = B.pack `fmap` readProcess "/bin/cat" [file] "" -- cgit v1.2.3