Delete BatchCursor.tryNext and AsyncBatchCursor.tryNext methods

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • 4.3.0
    • Affects Version/s: None
    • Component/s: Internal
    • None
    • None
    • Fully Compatible
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      1. com.mongodb.reactivestreams.client.internal.BatchCursor.tryNext and com.mongodb.internal.async.AsyncBatchCursor are internal.
      2. BatchCursor.tryNext is not called.
      3. AsyncBatchCursor.tryNext is called only from
        1. BatchCursor.tryNext, which is not called from anywhere else
        2. implementations of AsyncBatchCursor.tryNext, which are only called from BatchCursor.tryNext, which is not called.

      It follows from the above that we can safely delete the aforementioned tryNext methods.

              Assignee:
              Jeffrey Yemin
              Reporter:
              Valentin Kavalenka
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: