No need for the 'get_ob' methods on PyCache.
This commit is contained in:
parent
167ee99f33
commit
6b54dc9e64
1 changed files with 0 additions and 6 deletions
|
@ -432,9 +432,6 @@ cdef cpp_bool partial_merge_callback(
|
|||
#### Here comes the Cache stuff
|
||||
@cython.internal
|
||||
cdef class PyCache(object):
|
||||
cdef object get_ob(self):
|
||||
return None
|
||||
|
||||
cdef shared_ptr[cache.Cache] get_cache(self):
|
||||
return shared_ptr[cache.Cache]()
|
||||
|
||||
|
@ -448,9 +445,6 @@ cdef class PyLRUCache(PyCache):
|
|||
else:
|
||||
self.cache_ob = cache.NewLRUCache(capacity)
|
||||
|
||||
cdef object get_ob(self):
|
||||
return self
|
||||
|
||||
cdef shared_ptr[cache.Cache] get_cache(self):
|
||||
return self.cache_ob
|
||||
|
||||
|
|
Loading…
Reference in a new issue