diff --git a/rocksdb/_rocksdb.pyx b/rocksdb/_rocksdb.pyx
index 2cb8b3abc254d69afdc226ccb1e0e767b3a828b6..c72e826388b0e29a4d80c7e5d0cd2b70c5cf6c43 100644
--- a/rocksdb/_rocksdb.pyx
+++ b/rocksdb/_rocksdb.pyx
@@ -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