about summary refs log tree commit diff
path: root/src/engine/external/zlib/gzclose.c
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2012-01-07 23:50:47 +0100
committeroy <Tom_Adams@web.de>2012-01-07 23:50:47 +0100
commit45302957f19dc1f29cfad721321b24444e589db9 (patch)
treedcf85b142406c54e6b1adad3788a673b7f3c3c24 /src/engine/external/zlib/gzclose.c
parent6649d651a8fcb170ccfd53c30d1f3c55d86b9767 (diff)
downloadzcatch-45302957f19dc1f29cfad721321b24444e589db9.tar.gz
zcatch-45302957f19dc1f29cfad721321b24444e589db9.zip
removed some unused zlib stuff. Closes #907
Diffstat (limited to 'src/engine/external/zlib/gzclose.c')
-rw-r--r--src/engine/external/zlib/gzclose.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/engine/external/zlib/gzclose.c b/src/engine/external/zlib/gzclose.c
deleted file mode 100644
index caeb99a3..00000000
--- a/src/engine/external/zlib/gzclose.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/* gzclose.c -- zlib gzclose() function
- * Copyright (C) 2004, 2010 Mark Adler
- * For conditions of distribution and use, see copyright notice in zlib.h
- */
-
-#include "gzguts.h"
-
-/* gzclose() is in a separate file so that it is linked in only if it is used.
-   That way the other gzclose functions can be used instead to avoid linking in
-   unneeded compression or decompression routines. */
-int ZEXPORT gzclose(file)
-    gzFile file;
-{
-#ifndef NO_GZCOMPRESS
-    gz_statep state;
-
-    if (file == NULL)
-        return Z_STREAM_ERROR;
-    state = (gz_statep)file;
-
-    return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
-#else
-    return gzclose_r(file);
-#endif
-}