@@ -22,10 +22,11 @@ import (
2222 "sync"
2323 "sync/atomic"
2424
25+ log "github.com/sirupsen/logrus"
26+
2527 "github.com/cossacklabs/acra/decryptor/base"
2628 "github.com/cossacklabs/acra/logging"
2729 "github.com/cossacklabs/acra/network"
28- log "github.com/sirupsen/logrus"
2930)
3031
3132// ClientSession handles connection between database and AcraServer.
@@ -35,7 +36,6 @@ type ClientSession struct {
3536 connectionToDb net.Conn
3637 ctx context.Context
3738 logger * log.Entry
38- statements base.PreparedStatementRegistry
3939 protocolState interface {}
4040 mutex sync.RWMutex
4141 data map [string ]interface {}
@@ -114,17 +114,6 @@ func (clientSession *ClientSession) DatabaseConnection() net.Conn {
114114 return clientSession .connectionToDb
115115}
116116
117- // PreparedStatementRegistry returns prepared statement registry of this session.
118- // The session does not have a registry by default, it must be set with SetPreparedStatementRegistry.
119- func (clientSession * ClientSession ) PreparedStatementRegistry () base.PreparedStatementRegistry {
120- return clientSession .statements
121- }
122-
123- // SetPreparedStatementRegistry sets prepared statement registry for this session.
124- func (clientSession * ClientSession ) SetPreparedStatementRegistry (registry base.PreparedStatementRegistry ) {
125- clientSession .statements = registry
126- }
127-
128117// ProtocolState returns private protocol state of this session.
129118// The session does not have any state by default, it must be set with SetProtocolState.
130119func (clientSession * ClientSession ) ProtocolState () interface {} {
0 commit comments