libpolicyrep.pyx: Remove unused function.

This commit is contained in:
Chris PeBenito 2018-02-16 16:51:22 -05:00
parent 270a094a1e
commit 96f7ac3816

View File

@ -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.