From f31faccea01c5b79b31795d3e27386fbd434cc31 Mon Sep 17 00:00:00 2001 From: Christian Spielberger Date: Wed, 6 Nov 2024 09:50:50 +0100 Subject: [PATCH] bevent: move odict_pl_add() to re --- src/bevent.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/bevent.c b/src/bevent.c index 4ac7fdc6b..50af0b12d 100644 --- a/src/bevent.c +++ b/src/bevent.c @@ -482,20 +482,6 @@ int event_encode_dict(struct odict *od, struct ua *ua, enum ua_event ev, } -static int odict_pl_add(struct odict *od, const char *key, - const struct pl *val) -{ - char *str; - int err = pl_strdup(&str, val); - if (err) - return err; - - err = odict_entry_add(od, key, ODICT_STRING, str); - mem_deref(str); - return err; -} - - int odict_encode_bevent(struct odict *od, struct bevent *event) { struct ua *ua = bevent_get_ua(event);