diff options
Diffstat (limited to 'upb/pb/decoder.c')
-rw-r--r-- | upb/pb/decoder.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/upb/pb/decoder.c b/upb/pb/decoder.c index 32509b5..30a1945 100644 --- a/upb/pb/decoder.c +++ b/upb/pb/decoder.c @@ -599,14 +599,7 @@ have_tag: } if (d->top->groupnum >= 0) { - addunknown = (upb_unknown_handlerfunc *)upb_handlers_gethandler( - (d->top->sink).handlers, UPB_UNKNOWN_SELECTOR); - if (addunknown != NULL) { - hd = upb_handlers_gethandlerdata((d->top->sink).handlers, - UPB_UNKNOWN_SELECTOR); - addunknown((d->top->sink).closure, hd, d->checkpoint, - d->ptr - d->checkpoint); - } + upb_sink_putunknown(&d->top->sink, d->checkpoint, d->ptr - d->checkpoint); return DECODE_OK; } |