mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
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:
parent
b8a7ad727e
commit
244b0d9c92
@ -122,8 +122,8 @@ class TFramedTransport < TTransport
|
||||
@write = write
|
||||
end
|
||||
|
||||
def isOpen()
|
||||
return @transport.isOpen
|
||||
def open?()
|
||||
return @transport.open?
|
||||
end
|
||||
|
||||
def open()
|
||||
@ -144,7 +144,7 @@ class TFramedTransport < TTransport
|
||||
end
|
||||
|
||||
if (@rbuf.length == 0)
|
||||
readFrame
|
||||
read_frame
|
||||
end
|
||||
|
||||
# return full buf
|
||||
@ -193,7 +193,7 @@ class TFramedTransport < TTransport
|
||||
|
||||
private
|
||||
|
||||
def readFrame
|
||||
def read_frame
|
||||
buf = @transport.readAll(4)
|
||||
val = buf.unpack('N')
|
||||
sz = val[0]
|
||||
@ -218,7 +218,7 @@ class TMemoryBuffer < TTransport
|
||||
@rpos = 0
|
||||
end
|
||||
|
||||
def isOpen
|
||||
def open?
|
||||
return 1
|
||||
end
|
||||
|
||||
@ -232,11 +232,11 @@ class TMemoryBuffer < TTransport
|
||||
return @rpos < @wpos
|
||||
end
|
||||
|
||||
def getBuffer
|
||||
def get_buffer
|
||||
return @buf
|
||||
end
|
||||
|
||||
def resetBuffer(new_buf = '')
|
||||
def reset_buffer(new_buf = '')
|
||||
@buf = new_buf
|
||||
@sz = new_buf.length
|
||||
@wpos = new_buf.length
|
||||
|
Loading…
Reference in New Issue
Block a user