jcs's openbsd hax
openbsd

remove unused wg_queue_len() ok rsadowski@ mpi@

jsg c5c554d7 f46d2b40

+1 -12
+1 -12
sys/net/if_wg.c
··· 1 - /* $OpenBSD: if_wg.c,v 1.46 2025/07/17 12:43:43 claudio Exp $ */ 1 + /* $OpenBSD: if_wg.c,v 1.47 2025/09/17 12:35:55 jsg Exp $ */ 2 2 3 3 /* 4 4 * Copyright (C) 2015-2020 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. ··· 358 358 wg_ring_dequeue(struct wg_ring *); 359 359 struct mbuf * 360 360 wg_queue_dequeue(struct wg_queue *, struct wg_tag **); 361 - size_t wg_queue_len(struct wg_queue *); 362 361 363 362 struct noise_remote * 364 363 wg_remote_get(void *, uint8_t[NOISE_PUBLIC_KEY_LEN]); ··· 1995 1994 m = NULL; 1996 1995 mtx_leave(&q->q_mtx); 1997 1996 return m; 1998 - } 1999 - 2000 - size_t 2001 - wg_queue_len(struct wg_queue *q) 2002 - { 2003 - size_t len; 2004 - mtx_enter(&q->q_mtx); 2005 - len = q->q_list.ml_len; 2006 - mtx_leave(&q->q_mtx); 2007 - return len; 2008 1997 } 2009 1998 2010 1999 struct noise_remote *