From 6861e37c37072b9bcf90a7b7a7e6e46ed9180eb7 Mon Sep 17 00:00:00 2001 From: "Dmitry D. Chernov" Date: Mon, 11 Feb 2019 08:54:06 +1000 Subject: [PATCH] Remove unused Connection.clone() method --- telethon/network/connection/connection.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/telethon/network/connection/connection.py b/telethon/network/connection/connection.py index e9e83fb2..029c19fe 100644 --- a/telethon/network/connection/connection.py +++ b/telethon/network/connection/connection.py @@ -95,14 +95,6 @@ class Connection(abc.ABC): if self._writer: self._writer.close() - def clone(self): - """ - Creates a clone of the connection. - """ - # TODO: Should we pass proxy? - return self.__class__( - self._ip, self._port, self._dc_id, loop=self._loop) - def send(self, data): """ Sends a packet of data through this connection mode.