Skip to content

Commit 18f885f

Browse files
committed
remove unused func
1 parent e7ab181 commit 18f885f

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

channel.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"encoding/binary"
99
"fmt"
1010
"io"
11-
"net"
1211
"sync"
1312
"time"
1413

@@ -148,12 +147,6 @@ func newEncryptedChannel(conn Connection, sendPad, recvPad *qpp.QuantumPermutati
148147
}
149148
}
150149

151-
// NewTransport creates a new Transport from a net.Conn with the given encryption parameters.
152-
// This is the primary constructor for production use.
153-
func NewTransport(conn net.Conn, sendPad, recvPad *qpp.QuantumPermutationPad, sendMacKey, recvMacKey []byte) Transport {
154-
return newEncryptedChannel(conn, sendPad, recvPad, sendMacKey, recvMacKey)
155-
}
156-
157150
// Send marshals a PlainPayload, encrypts it, and writes a SecureData envelope.
158151
// Calls are serialized because QPP mutates its internal pad state per use.
159152
func (c *encryptedChannel) Send(payload *protocol.PlainPayload) error {

0 commit comments

Comments
 (0)