aboutsummaryrefslogtreecommitdiff
path: root/vcal.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-01-22 14:58:07 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-01-22 14:58:07 +0100
commitb0def51bf3ad5c176e05e9e93fb5b303c9b0d6ee (patch)
tree2c1658de6ef4055395a565fce62aa583d297b85b /vcal.c
parentMakefile now places .o files in subdir. (diff)
downloadcalp-b0def51bf3ad5c176e05e9e93fb5b303c9b0d6ee.tar.gz
calp-b0def51bf3ad5c176e05e9e93fb5b303c9b0d6ee.tar.xz
Clean up a number of comments, and remove TODO's.
Diffstat (limited to 'vcal.c')
-rw-r--r--vcal.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/vcal.c b/vcal.c
index cb7adec3..65caaa26 100644
--- a/vcal.c
+++ b/vcal.c
@@ -13,12 +13,10 @@ int CONSTRUCTOR_DECL(vevent) {
}
content_line* get_property (vevent* ev, char* key) {
- // return HASH_GET(content_line)(&ev->clines, key);
return TRIE_GET(content_line)(&ev->clines, key);
}
int add_content_line (vevent* ev, content_line* c) {
- // return HASH_PUT(content_line)(&ev->clines, c);
// TODO memmory safety on strbuf?
return TRIE_PUT(content_line)(&ev->clines, c->key.mem, c);
}
@@ -41,18 +39,14 @@ int CONSTRUCTOR_DECL(content_line, int keylen, int vallen) {
int content_line_copy (content_line* dest, content_line* src) {
strbuf_init_copy(&dest->key, &src->key);
strbuf_init_copy(&dest->val, &src->val);
-
// TODO remaining fields
-
return 0;
}
int FREE_DECL(content_line) {
FREE(strbuf)(&this->key);
FREE(strbuf)(&this->val);
-
// TODO remaining fields
-
return 0;
}