Skip to content

Commit

Permalink
GODRIVER-2979 Remove DecodeBytes for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonvasquez committed Oct 5, 2023
1 parent 60e0a13 commit 7bff8e2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions mongo/single_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,6 @@ func (sr *SingleResult) Raw() (bson.Raw, error) {
return sr.rdr, nil
}

// DecodeBytes will return the document represented by this SingleResult as a bson.Raw. If there was an error from the
// operation that created this SingleResult, both the result and that error will be returned. If the operation returned
// no documents, this will return (nil, ErrNoDocuments).
//
// Deprecated: Use [SingleResult.Raw] instead.
func (sr *SingleResult) DecodeBytes() (bson.Raw, error) {
return sr.Raw()
}

// setRdrContents will set the contents of rdr by iterating the underlying cursor if necessary.
func (sr *SingleResult) setRdrContents() error {
switch {
Expand Down

0 comments on commit 7bff8e2

Please sign in to comment.