aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-01-21 12:23:28 +0000
committerOmar Polo <op@omarpolo.com>2024-01-21 12:23:28 +0000
commit63e6b0bd0ced8b14ffb84efb31cf66346a4d68d3 (patch)
tree52848d8c09dc43f4c614232c902f97495503fc20
parent6dec2ad700aac233ab001f91b8fa05813180eaba (diff)
remove proc_forward_imsg since it's unused
-rw-r--r--proc.c8
-rw-r--r--proc.h2
2 files changed, 0 insertions, 10 deletions
diff --git a/proc.c b/proc.c
index 7e160a8..82458bc 100644
--- a/proc.c
+++ b/proc.c
@@ -799,14 +799,6 @@ proc_composev(struct privsep *ps, enum privsep_procid id,
return (proc_composev_imsg(ps, id, -1, type, -1, -1, iov, iovcnt));
}
-int
-proc_forward_imsg(struct privsep *ps, struct imsg *imsg,
- enum privsep_procid id, int n)
-{
- return (proc_compose_imsg(ps, id, n, imsg->hdr.type,
- imsg->hdr.peerid, -1, imsg->data, IMSG_DATA_SIZE(imsg)));
-}
-
struct imsgbuf *
proc_ibuf(struct privsep *ps, enum privsep_procid id, int n)
{
diff --git a/proc.h b/proc.h
index 45b5216..f576ad3 100644
--- a/proc.h
+++ b/proc.h
@@ -114,8 +114,6 @@ int proc_composev_imsg(struct privsep *, enum privsep_procid, int,
uint16_t, uint32_t, int, const struct iovec *, int);
int proc_composev(struct privsep *, enum privsep_procid,
uint16_t, const struct iovec *, int);
-int proc_forward_imsg(struct privsep *, struct imsg *,
- enum privsep_procid, int);
struct imsgbuf *
proc_ibuf(struct privsep *, enum privsep_procid, int);
struct imsgev *