[tor-commits] [pluggable-transports/snowflake-webext] 02/06: refactor: remove some dead code

gitolite role git at cupani.torproject.org
Thu Nov 10 15:23:18 UTC 2022


This is an automated email from the git hooks/post-receive script.

cohosh pushed a commit to branch main
in repository pluggable-transports/snowflake-webext.

commit 5f50e52c70cb65bfb6af3c5a2855c11a2c7daf26
Author: WofWca <wofwca at protonmail.com>
AuthorDate: Wed Nov 9 00:46:33 2022 +0400

    refactor: remove some dead code
---
 proxypair.js | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/proxypair.js b/proxypair.js
index d147388..83e83a2 100644
--- a/proxypair.js
+++ b/proxypair.js
@@ -312,13 +312,6 @@ class ProxyPair {
     return (null !== this.relay) && (WebSocket.OPEN === this.relay.readyState);
   }
 
-  /**
-   * @param {WebSocket} ws
-   */
-  isClosed(ws) {
-    return undefined === ws || WebSocket.CLOSED === ws.readyState;
-  }
-
   peerConnOpen() {
     return (null !== this.pc) && ('closed' !== this.pc.connectionState);
   }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tor-commits mailing list