Skip to content

Commit e955489

Browse files
authored
Remove unused 'legacy' field from BatchCursor. (#934)
1 parent c27db32 commit e955489

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

x/mongo/driver/batch_cursor.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ type BatchCursor struct {
4242
serverAPI *ServerAPIOptions
4343

4444
// legacy server (< 3.2) fields
45-
legacy bool // This field is provided for ListCollectionsBatchCursor.
4645
limit int32
4746
numReturned int32 // number of docs returned by server
4847
}
@@ -165,7 +164,6 @@ func NewBatchCursor(cr CursorResponse, clientSession *session.Client, clock *ses
165164
bc.numReturned = int32(ds.DocumentCount())
166165
}
167166
if cr.Desc.WireVersion == nil || cr.Desc.WireVersion.Max < 4 {
168-
bc.legacy = true
169167
bc.limit = opts.Limit
170168

171169
// Take as many documents from the batch as needed.

0 commit comments

Comments
 (0)