Skip to content
Snippets Groups Projects
Commit 6b54dc9e authored by hofmockel's avatar hofmockel
Browse files

No need for the 'get_ob' methods on PyCache.

parent 167ee99f
No related branches found
No related tags found
No related merge requests found
...@@ -432,9 +432,6 @@ cdef cpp_bool partial_merge_callback( ...@@ -432,9 +432,6 @@ cdef cpp_bool partial_merge_callback(
#### Here comes the Cache stuff #### Here comes the Cache stuff
@cython.internal @cython.internal
cdef class PyCache(object): cdef class PyCache(object):
cdef object get_ob(self):
return None
cdef shared_ptr[cache.Cache] get_cache(self): cdef shared_ptr[cache.Cache] get_cache(self):
return shared_ptr[cache.Cache]() return shared_ptr[cache.Cache]()
...@@ -448,9 +445,6 @@ cdef class PyLRUCache(PyCache): ...@@ -448,9 +445,6 @@ cdef class PyLRUCache(PyCache):
else: else:
self.cache_ob = cache.NewLRUCache(capacity) self.cache_ob = cache.NewLRUCache(capacity)
cdef object get_ob(self):
return self
cdef shared_ptr[cache.Cache] get_cache(self): cdef shared_ptr[cache.Cache] get_cache(self):
return self.cache_ob return self.cache_ob
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment