Stop re-defining deprecated methods in subclasses

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668918 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kevin Clark 2008-06-18 00:58:40 +00:00
parent b8a7ad727e
commit 244b0d9c92

View File

@ -122,8 +122,8 @@ class TFramedTransport < TTransport
@write = write @write = write
end end
def isOpen() def open?()
return @transport.isOpen return @transport.open?
end end
def open() def open()
@ -144,7 +144,7 @@ class TFramedTransport < TTransport
end end
if (@rbuf.length == 0) if (@rbuf.length == 0)
readFrame read_frame
end end
# return full buf # return full buf
@ -193,7 +193,7 @@ class TFramedTransport < TTransport
private private
def readFrame def read_frame
buf = @transport.readAll(4) buf = @transport.readAll(4)
val = buf.unpack('N') val = buf.unpack('N')
sz = val[0] sz = val[0]
@ -218,7 +218,7 @@ class TMemoryBuffer < TTransport
@rpos = 0 @rpos = 0
end end
def isOpen def open?
return 1 return 1
end end
@ -232,11 +232,11 @@ class TMemoryBuffer < TTransport
return @rpos < @wpos return @rpos < @wpos
end end
def getBuffer def get_buffer
return @buf return @buf
end end
def resetBuffer(new_buf = '') def reset_buffer(new_buf = '')
@buf = new_buf @buf = new_buf
@sz = new_buf.length @sz = new_buf.length
@wpos = new_buf.length @wpos = new_buf.length