File tree 1 file changed +3
-8
lines changed
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ cdef class IndexEngine:
80
80
81
81
cdef:
82
82
bint unique, monotonic_inc, monotonic_dec
83
- bint initialized, monotonic_check, unique_check
83
+ bint initialized, monotonic_check
84
84
85
85
def __init__ (self , vgetter , n ):
86
86
self .vgetter = vgetter
@@ -91,7 +91,6 @@ cdef class IndexEngine:
91
91
self .monotonic_check = 0
92
92
93
93
self .unique = 0
94
- self .unique_check = 0
95
94
self .monotonic_inc = 0
96
95
self .monotonic_dec = 0
97
96
@@ -211,8 +210,8 @@ cdef class IndexEngine:
211
210
property is_unique :
212
211
213
212
def __get__ (self ):
214
- if not self .unique_check :
215
- self ._do_unique_check ()
213
+ if not self .initialized :
214
+ self .initialize ()
216
215
217
216
return self .unique == 1
218
217
@@ -246,9 +245,6 @@ cdef class IndexEngine:
246
245
cdef _get_index_values(self ):
247
246
return self .vgetter()
248
247
249
- cdef inline _do_unique_check(self ):
250
- self ._ensure_mapping_populated()
251
-
252
248
def _call_monotonic (self , values ):
253
249
raise NotImplementedError
254
250
@@ -270,7 +266,6 @@ cdef class IndexEngine:
270
266
271
267
if len (self .mapping) == len (values):
272
268
self .unique = 1
273
- self .unique_check = 1
274
269
275
270
self .initialized = 1
276
271
You can’t perform that action at this time.
0 commit comments