Skip to content

Commit

Permalink
chore: remove session() from Session interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayoub Chouak committed Dec 3, 2024
1 parent 070817d commit 5526aba
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions mongo/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 5526aba

Please sign in to comment.