Bug 1231556: Remove dead code in Marionette Transport. r=ato
authorDavid Burns <dburns@mozilla.com>
Wed, 09 Dec 2015 17:03:46 +0000
changeset 310241 0f5d32d339aadb1da6932d09df155312d3ec559e
parent 310240 f37f04feb3b5fd4cf1352d5d7806b6a9f0c052ad
child 310242 4585ac9e16ddd875bed4ed93d7227118b6e8004f
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1231556
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1231556: Remove dead code in Marionette Transport. r=ato
testing/marionette/transport/marionette_transport/transport.py
--- a/testing/marionette/transport/marionette_transport/transport.py
+++ b/testing/marionette/transport/marionette_transport/transport.py
@@ -123,25 +123,16 @@ class TcpTransport(object):
         self.protocol = 1
         self.application_type = None
         self.last_id = 0
         self.expected_responses = []
 
         self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
         self.sock.settimeout(self.socket_timeout)
 
-    def _recv_n_bytes(self, n):
-        data = ""
-        while len(data) < n:
-            chunk = self.sock.recv(n - len(data))
-            if chunk == "":
-                break
-            data += chunk
-        return data
-
     def _unmarshal(self, packet):
         msg = None
 
         # protocol 3 and above
         if self.protocol >= 3:
             typ = int(packet[1])
             if typ == Command.TYPE:
                 msg = Command.from_msg(packet)