From 66dd37c0018bd958ea1a644e3552bce66b13f658 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Sun, 27 Feb 2022 13:59:28 +0100 Subject: Switch from mostly ref based tracking to multi-link architecture --- src/tag.c | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 src/tag.c (limited to 'src/tag.c') diff --git a/src/tag.c b/src/tag.c deleted file mode 100644 index aa4a266..0000000 --- a/src/tag.c +++ /dev/null @@ -1,38 +0,0 @@ -#include "tag.h" - -#include "link.h" -#include "ref.h" -#include "util.h" - -#include - -struct tag * -tag_alloc(const char *path, const char *fname) -{ - struct tag *tag; - int len; - - tag = malloc(sizeof(struct tag)); - ASSERT(tag != NULL); - - tag->fpath = aprintf("%s/%s", path, fname); - ASSERT(tag->fpath != NULL); - - tag->name = strdup(fname); - ASSERT(tag->name != NULL); - - tag->link = LINK_EMPTY; - - list_init(&tag->tracks); - - return tag; -} - -void -tag_free(struct tag *tag) -{ - free(tag->fpath); - free(tag->name); - refs_free(&tag->tracks); - free(tag); -} -- cgit v1.2.3-71-gd317