Skip to content

Commit edfefc8

Browse files
author
Gurov Ilya
authored
refactor: remove unused _count attribute from StreamedResultSet class (#113)
1 parent 63b4324 commit edfefc8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

google/cloud/spanner_v1/streamed.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class StreamedResultSet(object):
4242
def __init__(self, response_iterator, source=None):
4343
self._response_iterator = response_iterator
4444
self._rows = [] # Fully-processed rows
45-
self._counter = 0 # Counter for processed responses
4645
self._metadata = None # Until set from first PRS
4746
self._stats = None # Until set from last PRS
4847
self._current_row = [] # Accumulated values for incomplete row
@@ -114,7 +113,6 @@ def _consume_next(self):
114113
Parse the result set into new/existing rows in :attr:`_rows`
115114
"""
116115
response = six.next(self._response_iterator)
117-
self._counter += 1
118116

119117
if self._metadata is None: # first response
120118
metadata = self._metadata = response.metadata

0 commit comments

Comments
 (0)