summary refs log tree commit diff
diff options
context:
space:
mode:
authorSean Quah <8349537+squahtx@users.noreply.github.com>2023-05-30 14:37:39 +0100
committerGitHub <noreply@github.com>2023-05-30 14:37:39 +0100
commit5d8c659373ae2b169892fc9d99d54bd1b3baf65a (patch)
tree1ca639ae54430cc306b6f1654d61084be94795e6
parentCreate dependabot changelogs at release time (#15481) (diff)
downloadsynapse-5d8c659373ae2b169892fc9d99d54bd1b3baf65a.tar.xz
Remove unused `FederationServer.__str__` override (#15690)
Signed-off-by: Sean Quah <seanq@matrix.org>
-rw-r--r--changelog.d/15690.misc1
-rw-r--r--synapse/federation/federation_server.py3
2 files changed, 1 insertions, 3 deletions
diff --git a/changelog.d/15690.misc b/changelog.d/15690.misc
new file mode 100644
index 0000000000..c6c259eb7d
--- /dev/null
+++ b/changelog.d/15690.misc
@@ -0,0 +1 @@
+Remove some unused code.
diff --git a/synapse/federation/federation_server.py b/synapse/federation/federation_server.py
index f4ca70a698..e17cb840de 100644
--- a/synapse/federation/federation_server.py
+++ b/synapse/federation/federation_server.py
@@ -1291,9 +1291,6 @@ class FederationServer(FederationBase):
                 return
             lock = new_lock
 
-    def __str__(self) -> str:
-        return "<ReplicationLayer(%s)>" % self.server_name
-
     async def exchange_third_party_invite(
         self, sender_user_id: str, target_user_id: str, room_id: str, signed: Dict
     ) -> None: