Rip out MemoryBuffer#get_buffer
authorKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:10:43 +0000 (01:10 +0000)
committerKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:10:43 +0000 (01:10 +0000)
Nobody should be using that method and it's preventing MemoryBuffer from being optimized wrt. memory usage

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668966 13f79535-47bb-0310-9956-ffa450edef68

lib/rb/lib/thrift/transport.rb

index 57706ec..684e838 100644 (file)
@@ -231,10 +231,6 @@ module Thrift
       return @rpos < @wpos
     end
 
-    def get_buffer
-      return @buf
-    end
-
     def reset_buffer(new_buf = '')
        @buf  = new_buf
        @sz   = new_buf.length