summaryrefslogtreecommitdiff
path: root/src/keypair.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/keypair.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/keypair.go b/src/keypair.go
index 3caa0c8..b24dbe4 100644
--- a/src/keypair.go
+++ b/src/keypair.go
@@ -23,19 +23,6 @@ type KeyPairs struct {
next *KeyPair // not yet "confirmed by transport"
}
-/* Called during recieving to confirm the handshake
- * was completed correctly
- */
-func (kp *KeyPairs) Used(key *KeyPair) {
- if key == kp.next {
- kp.mutex.Lock()
- kp.previous = kp.current
- kp.current = key
- kp.next = nil
- kp.mutex.Unlock()
- }
-}
-
func (kp *KeyPairs) Current() *KeyPair {
kp.mutex.RLock()
defer kp.mutex.RUnlock()