Skip to content

Commit

Permalink
Remove unused variable c_fn_name and withTString
Browse files Browse the repository at this point in the history
  • Loading branch information
Esa Ilari Vuokko committed Jul 31, 2006
1 parent 4f821bb commit 694f269
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions System/Win32/Types.hs
Expand Up @@ -194,8 +194,7 @@ errorWin fn_name = do
failWith fn_name err_code

failWith :: String -> ErrCode -> IO a
failWith fn_name err_code =
withTString fn_name $ \ c_fn_name -> do
failWith fn_name err_code = do
c_msg <- getErrorMessage err_code
msg <- peekTString c_msg
localFree c_msg
Expand Down

0 comments on commit 694f269

Please sign in to comment.