aboutsummaryrefslogtreecommitdiffstats
path: root/src/dirvec.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-13 21:54:02 -0700
committerEric Wong <normalperson@yhbt.net>2008-10-13 21:54:02 -0700
commit396f03db551d585ee3eff4a3a1e6f49283abbc61 (patch)
treee5566191b76c19e50222e41d7a835e0652a9b2be /src/dirvec.h
parente5c604feac962f654ba2cb7739ef33b9242cb072 (diff)
downloadmpd-396f03db551d585ee3eff4a3a1e6f49283abbc61.tar.gz
mpd-396f03db551d585ee3eff4a3a1e6f49283abbc61.tar.xz
mpd-396f03db551d585ee3eff4a3a1e6f49283abbc61.zip
{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.
Diffstat (limited to '')
-rw-r--r--src/dirvec.h7
1 files changed, 0 insertions, 7 deletions
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);