mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-20 01:56:31 +00:00
libpolicyrep.pyx: Remove unused function.
This commit is contained in:
parent
270a094a1e
commit
96f7ac3816
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user