From 5526aba47910378ae121e7399e15d5ad27999971 Mon Sep 17 00:00:00 2001 From: Ayoub Chouak Date: Tue, 3 Dec 2024 14:41:14 +0100 Subject: [PATCH] chore: remove session() from Session interface --- mongo/session.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mongo/session.go b/mongo/session.go index 77be4ab6db..288bf63efd 100644 --- a/mongo/session.go +++ b/mongo/session.go @@ -136,8 +136,6 @@ type Session interface { // AdvanceOperationTime advances the operation time for a session. This method returns an error // if the session has ended. AdvanceOperationTime(*primitive.Timestamp) error - - session() } // XSession is an unstable interface for internal use only. @@ -374,10 +372,6 @@ func (s *sessionImpl) Client() *Client { return s.client } -// session implements the Session interface. -func (*sessionImpl) session() { -} - // sessionFromContext checks for a sessionImpl in the argued context and returns the session if it // exists func sessionFromContext(ctx context.Context) *session.Client {