Date: Thu, 12 Jul 2012 11:02:04 +0000 (UTC) From: Attilio Rao <attilio@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r238394 - user/attilio/vmc-playground/sys/vm Message-ID: <201207121102.q6CB24HL003623@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: attilio Date: Thu Jul 12 11:02:04 2012 New Revision: 238394 URL: http://svn.freebsd.org/changeset/base/238394 Log: Remove unused iterating functions. Modified: user/attilio/vmc-playground/sys/vm/vm_radix.h Modified: user/attilio/vmc-playground/sys/vm/vm_radix.h ============================================================================== --- user/attilio/vmc-playground/sys/vm/vm_radix.h Thu Jul 12 10:09:34 2012 (r238393) +++ user/attilio/vmc-playground/sys/vm/vm_radix.h Thu Jul 12 11:02:04 2012 (r238394) @@ -62,37 +62,5 @@ vm_radix_lookup_ge(struct vm_radix *rtre 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_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207121102.q6CB24HL003623>