Permalink
Browse files

Removed unused test code from the main wrapper.

  • Loading branch information...
1 parent 98b1855 commit ca99d1234825ffeb9111a51af070370f490353a8 @lucsky committed Dec 15, 2008
Showing with 0 additions and 37 deletions.
  1. +0 −37 lib/ffi/zlib.rb
View
@@ -211,40 +211,3 @@ def self.inflateInit2(zstream, window_bits)
end
# =============================================================================
-
-#str = "toto tata titi tutu toto tata titi tutu toto tata titi tutu toto tata titi tutu toto tata titi tutu toto tata titi tutu"
-#inp = FFI::MemoryPointer.new(1024)
-#inp.put_string(0, str)
-#out = FFI::MemoryPointer.new(1024)
-#
-#zstream = FFI::Zlib::Z_stream.new
-#zstream[:next_in] = inp
-#zstream[:avail_in] = str.length
-#zstream[:next_out] = out
-#zstream[:avail_out] = 1024
-#
-#FFI::Zlib.deflateInit(zstream, FFI::Zlib::Z_DEFAULT_COMPRESSION)
-#FFI::Zlib.deflate(zstream, FFI::Zlib::Z_FINISH)
-#FFI::Zlib.deflateEnd(zstream)
-#
-#p zstream[:total_out]
-#compressed = out.get_bytes(0, zstream[:total_out])
-
-# ==============================================================================
-
-#out2 = FFI::MemoryPointer.new(1024)
-#zstream = FFI::Zlib::Z_stream.new
-#zstream[:next_in] = out
-#zstream[:avail_in] = compressed.length
-#zstream[:next_out] = out2
-#zstream[:avail_out] = 1024
-#
-#FFI::Zlib.inflateInit(zstream)
-#FFI::Zlib.inflate(zstream, FFI::Zlib::Z_FINISH)
-#FFI::Zlib.inflateEnd(zstream)
-#
-#p zstream[:total_out]
-#initial = out2.get_bytes(0, zstream[:total_out])
-#p initial
-
-# ==============================================================================

0 comments on commit ca99d12

Please sign in to comment.