From 396f03db551d585ee3eff4a3a1e6f49283abbc61 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 13 Oct 2008 21:54:02 -0700 Subject: {dir,song}vec: remove unused *_destroy routines Blindly destroying these without freeing the underlying elements was a bad idea, always. Our iterators suck less nowadays and we can traverse them and free() each element safely. --- src/dirvec.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/dirvec.h') diff --git a/src/dirvec.h b/src/dirvec.h index 6709537b8..0dd7c7a9c 100644 --- a/src/dirvec.h +++ b/src/dirvec.h @@ -14,13 +14,6 @@ int dirvec_delete(struct dirvec *dv, struct directory *del); void dirvec_add(struct dirvec *dv, struct directory *add); -static inline void dirvec_clear(struct dirvec *dv) -{ - dv->nr = 0; -} - -void dirvec_destroy(struct dirvec *dv); - int dirvec_for_each(const struct dirvec *dv, int (*fn)(struct directory *, void *), void *arg); -- cgit v1.2.3