From 1678dc5074264148e1453cf05e5ebd26d3d1fba7 Mon Sep 17 00:00:00 2001 From: Kris Kwiatkowski Date: Tue, 4 Sep 2018 18:25:59 +0100 Subject: [PATCH] cleanup: removes Committer interface --- 13.go | 6 ------ handshake_server.go | 4 ---- 2 files changed, 10 deletions(-) diff --git a/13.go b/13.go index 736f182..46e878f 100644 --- a/13.go +++ b/13.go @@ -152,12 +152,6 @@ CurvePreferenceLoop: return errors.New("tls: HelloRetryRequest not implemented") // TODO(filippo) } - if committer, ok := c.conn.(Committer); ok { - if err := committer.Commit(); err != nil { - return err - } - } - privateKey, serverKS, err := config.generateKeyShare(ks.group) if err != nil { c.sendAlert(alertInternalError) diff --git a/handshake_server.go b/handshake_server.go index 6825630..127d8b5 100644 --- a/handshake_server.go +++ b/handshake_server.go @@ -16,10 +16,6 @@ import ( "sync/atomic" ) -type Committer interface { - Commit() error -} - // serverHandshakeState contains details of a server handshake in progress. // It's discarded once the handshake has completed. type serverHandshakeState struct {