svn commit: r191535 - head/sys/sys

Ed Schouten ed at FreeBSD.org
Sun Apr 26 21:06:12 UTC 2009


Author: ed
Date: Sun Apr 26 21:06:11 2009
New Revision: 191535
URL: http://svn.freebsd.org/changeset/base/191535

Log:
  Remove the unused insque() and remque() functions.
  
  We have no code in the tree that uses these anymore. New code should
  just use the regular queue(3) macros.

Modified:
  head/sys/sys/queue.h

Modified: head/sys/sys/queue.h
==============================================================================
--- head/sys/sys/queue.h	Sun Apr 26 21:03:29 2009	(r191534)
+++ head/sys/sys/queue.h	Sun Apr 26 21:06:11 2009	(r191535)
@@ -578,50 +578,4 @@ struct {								\
 	QMD_TRACE_ELEM(&(elm)->field);					\
 } while (0)
 
-
-#ifdef _KERNEL
-
-/*
- * XXX insque() and remque() are an old way of handling certain queues.
- * They bogusly assumes that all queue heads look alike.
- */
-
-struct quehead {
-	struct quehead *qh_link;
-	struct quehead *qh_rlink;
-};
-
-#ifdef __CC_SUPPORTS___INLINE
-
-static __inline void
-insque(void *a, void *b)
-{
-	struct quehead *element = (struct quehead *)a,
-		 *head = (struct quehead *)b;
-
-	element->qh_link = head->qh_link;
-	element->qh_rlink = head;
-	head->qh_link = element;
-	element->qh_link->qh_rlink = element;
-}
-
-static __inline void
-remque(void *a)
-{
-	struct quehead *element = (struct quehead *)a;
-
-	element->qh_link->qh_rlink = element->qh_rlink;
-	element->qh_rlink->qh_link = element->qh_link;
-	element->qh_rlink = 0;
-}
-
-#else /* !__CC_SUPPORTS___INLINE */
-
-void	insque(void *a, void *b);
-void	remque(void *a);
-
-#endif /* __CC_SUPPORTS___INLINE */
-
-#endif /* _KERNEL */
-
 #endif /* !_SYS_QUEUE_H_ */


More information about the svn-src-all mailing list