From 34064c9bef5e091fc48771a88fe6fd3b04906e92 Mon Sep 17 00:00:00 2001 From: attilio Date: Thu, 12 Jul 2012 11:02:04 +0000 Subject: Remove unused iterating functions. --- sys/vm/vm_radix.h | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'sys/vm/vm_radix.h') diff --git a/sys/vm/vm_radix.h b/sys/vm/vm_radix.h index 8a44d4f..1c7c7c9 100644 --- a/sys/vm/vm_radix.h +++ b/sys/vm/vm_radix.h @@ -62,37 +62,5 @@ vm_radix_lookup_ge(struct vm_radix *rtree, vm_pindex_t index) return (NULL); } -static inline void * -vm_radix_last(struct vm_radix *rtree) -{ - - return vm_radix_lookup_le(rtree, 0); -} - -static inline void * -vm_radix_first(struct vm_radix *rtree) -{ - - return vm_radix_lookup_ge(rtree, 0); -} - -static inline void * -vm_radix_next(struct vm_radix *rtree, vm_pindex_t index) -{ - - if (index == -1) - return (NULL); - return vm_radix_lookup_ge(rtree, index + 1); -} - -static inline void * -vm_radix_prev(struct vm_radix *rtree, vm_pindex_t index) -{ - - if (index == 0) - return (NULL); - return vm_radix_lookup_le(rtree, index - 1); -} - #endif /* _KERNEL */ #endif /* !_VM_RADIX_H_ */ -- cgit v1.1