From a0a64feb355a6846ff4e3a1ade86d0b962cc12d0 Mon Sep 17 00:00:00 2001 From: Eric Hodel Date: Wed, 29 Oct 2008 16:13:31 -0700 Subject: [PATCH] Remove unused zlib extension --- lib/ext/zlib/build.rb | 5 ----- lib/ext/zlib/zlib.c | 36 ------------------------------------ 2 files changed, 41 deletions(-) delete mode 100644 lib/ext/zlib/build.rb delete mode 100644 lib/ext/zlib/zlib.c diff --git a/lib/ext/zlib/build.rb b/lib/ext/zlib/build.rb deleted file mode 100644 index d6051fbcfb..0000000000 --- a/lib/ext/zlib/build.rb +++ /dev/null @@ -1,5 +0,0 @@ -extension do |e| - e.name 'zlib' - e.files '*.c' - e.includes '.' -end diff --git a/lib/ext/zlib/zlib.c b/lib/ext/zlib/zlib.c deleted file mode 100644 index a9d19f2258..0000000000 --- a/lib/ext/zlib/zlib.c +++ /dev/null @@ -1,36 +0,0 @@ -#include "zlib.h" -#include "ruby.h" -#include - -z_streamp rbx_Zlib_z_stream_Alloc() { - z_streamp strm; - - strm = (z_streamp)calloc(1, sizeof(z_stream)); - strm->avail_in = 0; - strm->avail_out = 0; - strm->next_in = Z_NULL; - strm->opaque = Z_NULL; - strm->zalloc = Z_NULL; - strm->zfree = Z_NULL; - - return strm; -} - -int rbx_Zlib_deflateInit2(z_streamp strm, int level, int method, - int windowBits, int memLevel, int strategy) { - return deflateInit2(strm, level, method, windowBits, memLevel, strategy); -} - -int rbx_Zlib_inflateInit2(z_streamp strm, int windowBits) { - return inflateInit2(strm, windowBits); -} - -Init_zlib() { - VALUE mZlib; - - mZlib = rb_define_module("Zlib"); - - rb_define_const(mZlib, "ZLIB_VERSION", rb_str_new2(ZLIB_VERSION)); - rb_define_const(mZlib, "STREAM_SIZE", INT2NUM(sizeof(z_stream))); -} -