You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by kc...@apache.org on 2008/06/18 03:10:55 UTC
svn commit: r668967 - /incubator/thrift/trunk/lib/rb/lib/thrift/transport.rb
Author: kclark
Date: Tue Jun 17 18:10:55 2008
New Revision: 668967
URL: http://svn.apache.org/viewvc?rev=668967&view=rev
Log:
Strip more empty parens
Modified:
incubator/thrift/trunk/lib/rb/lib/thrift/transport.rb
Modified: incubator/thrift/trunk/lib/rb/lib/thrift/transport.rb
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/lib/thrift/transport.rb?rev=668967&r1=668966&r2=668967&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/lib/thrift/transport.rb (original)
+++ incubator/thrift/trunk/lib/rb/lib/thrift/transport.rb Tue Jun 17 18:10:55 2008
@@ -58,11 +58,11 @@
deprecate_class! :TTransport => Transport
class ServerTransport
- def listen(); nil; end
+ def listen; nil; end
- def accept(); nil; end
+ def accept; nil; end
- def close(); nil; end
+ def close; nil; end
end
deprecate_class! :TServerTransport => ServerTransport
@@ -80,16 +80,16 @@
@wbuf = ''
end
- def open?()
- return @transport.open?()
+ def open?
+ return @transport.open?
end
- def open()
- @transport.open()
+ def open
+ @transport.open
end
- def close()
- @transport.close()
+ def close
+ @transport.close
end
def read(sz)
@@ -100,9 +100,9 @@
@wbuf << buf
end
- def flush()
+ def flush
@transport.write(@wbuf)
- @transport.flush()
+ @transport.flush
@wbuf = ''
end
end
@@ -124,15 +124,15 @@
@write = write
end
- def open?()
+ def open?
return @transport.open?
end
- def open()
+ def open
@transport.open
end
- def close()
+ def close
@transport.close
end
@@ -243,7 +243,7 @@
end
def read(len)
- avail = available()
+ avail = available
return '' if avail == 0
@@ -260,7 +260,7 @@
def write(wbuf)
@buf << wbuf
- @wpos += wbuf.length()
+ @wpos += wbuf.length
end
def flush