From e8359d7c954598298c337343bcae34cf3487446c Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 12 Jul 2006 16:20:14 +0000 Subject: [PATCH] update scale deletion function update scale deletion function --- src/scale.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/scale.c b/src/scale.c index 57fc7675..75b7ce96 100644 --- a/src/scale.c +++ b/src/scale.c @@ -35,26 +35,14 @@ struct _aubio_scale_t { */ }; -static aubio_scale_t * aubio_scale_malloc(void); -static void aubio_scale_free(aubio_scale_t * s); - -aubio_scale_t * aubio_scale_malloc() { - aubio_scale_t * s = AUBIO_NEW(aubio_scale_t); - return s; -} - -void aubio_scale_free(aubio_scale_t * s) { - AUBIO_FREE(s); -} - aubio_scale_t * new_aubio_scale (smpl_t ilow, smpl_t ihig, smpl_t olow, smpl_t ohig ){ - aubio_scale_t * s = aubio_scale_malloc(); + aubio_scale_t * s = AUBIO_NEW(aubio_scale_t); aubio_scale_set (s, ilow, ihig, olow, ohig); return s; } void del_aubio_scale(aubio_scale_t *s) { - aubio_scale_free(s); + AUBIO_FREE(s); } void aubio_scale_set (aubio_scale_t *s, smpl_t ilow, smpl_t ihig, smpl_t olow, smpl_t ohig) -- 2.26.2