From b64229c8b7b2558f5ef67f7d90bdf673fb6a7e1b Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Fri, 29 Jul 2022 17:37:40 -0700 Subject: [PATCH] delete engine.deleteConnection (unused) --- protocol/connections/engine.go | 7 ------- 1 file changed, 7 deletions(-) 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.