diff --git a/setools/policyrep/libpolicyrep.pyx b/setools/policyrep/libpolicyrep.pyx
index de38097..5834d22 100644
--- a/setools/policyrep/libpolicyrep.pyx
+++ b/setools/policyrep/libpolicyrep.pyx
@@ -362,28 +362,6 @@ cdef str string_factory_iter(SELinuxPolicy _, QpolIteratorItem item):
     return intern(<const char *> item.obj)
 
 
-cdef sepol.hashtab_datum_t hashtab_search(sepol.hashtab_t h, sepol.const_hashtab_key_t key):
-    """
-    Search a hash table by key.
-
-    This is derived from the libsepol function of the same name.
-    """
-
-    cdef:
-        int hvalue
-        sepol.hashtab_ptr_t cur
-
-    hvalue = h.hash_value(h, key)
-    cur = h.htable[hvalue]
-    while cur != NULL and h.keycmp(h, key, cur.key) > 0:
-        cur = cur.next
-
-    if cur == NULL or h.keycmp(h, key, cur.key) != 0:
-        return NULL
-
-    return cur.datum
-
-
 cdef int ebitmap_get_bit(sepol.ebitmap_t *e, unsigned int bit):
     """
     Get a specific bit value.