diff --git a/protocol/connections/engine.go b/protocol/connections/engine.go index 3ba557a..3b1e413 100644 --- a/protocol/connections/engine.go +++ b/protocol/connections/engine.go @@ -525,13 +525,6 @@ func (e *engine) sendRetValToPeer(eventID, onion, val, existsStr string) error { return e.sendPeerMessage(onion, pmodel.PeerMessage{ID: eventID, Context: event.ContextRetVal, Data: message}) } -func (e *engine) deleteConnection(id string) { - conn, err := e.service.GetConnection(id) - if err == nil { - conn.Close() - } -} - // receiveGroupMessage is a callback function that processes GroupMessages from a given server func (e *engine) receiveGroupMessage(server string, gm *groups.EncryptedGroupMessage) { // Publish Event so that a Profile Engine can deal with it.