From 13d834c5e16de4e2a89cf5e43545bfc7f6d71177 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Wed, 15 Sep 2010 18:10:29 +0200 Subject: [PATCH] remove unused function mix_prime() --- aucat/aproc.c | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/aucat/aproc.c b/aucat/aproc.c index be615b3..33d7cb8 100644 --- a/aucat/aproc.c +++ b/aucat/aproc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aproc.c,v 1.59 2010/05/07 07:15:50 ratchov Exp $ */ +/* $OpenBSD$ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -1083,41 +1083,6 @@ mix_clear(struct aproc *p) obuf->w.mix.todo = 0; } -void -mix_prime(struct aproc *p) -{ - struct abuf *obuf = LIST_FIRST(&p->outs); - unsigned todo, count; - - for (;;) { - if (!ABUF_WOK(obuf)) - break; - todo = p->u.mix.maxlat - p->u.mix.lat; - mix_bzero(obuf, todo); - count = obuf->w.mix.todo; - if (count > todo) - count = todo; - if (count == 0) - break; - obuf->w.mix.todo -= count; - p->u.mix.lat += count; - abuf_wcommit(obuf, count); - if (APROC_OK(p->u.mix.mon)) - mon_snoop(p->u.mix.mon, obuf, 0, count); - abuf_flush(obuf); - } -#ifdef DEBUG - if (debug_level >= 3) { - aproc_dbg(p); - dbg_puts(": prime: lat/maxlat="); - dbg_puti(p->u.mix.lat); - dbg_puts("/"); - dbg_puti(p->u.mix.maxlat); - dbg_puts("\n"); - } -#endif -} - /* * Gracefully terminate the mixer: raise the APROC_QUIT flag * and let the rest of the code do the job. If there are neither