summaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-20 11:41:01 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-20 11:41:01 +0800
commit63b109ca1c1c54319d164ddcfa5760aa66558ccd (patch)
tree6904b1c8fa0a4109b0734ebc6067f5aa9af22490 /client.c
parentfdb6565f877a33aa95afc24d937650095cbd6e4d (diff)
Move catalog freeing implementation to catalog's own implementation
Diffstat (limited to 'client.c')
-rw-r--r--client.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/client.c b/client.c
index 604e849..3e92aff 100644
--- a/client.c
+++ b/client.c
@@ -167,14 +167,6 @@ void icclient_page(const char *path, size_t (*handler)(void *, size_t, size_t
request(handler, (void *)dataptr, NULL, "%s", path);
}
-void icclient_freecatalog(icclient_catalog *catalog)
-{
- for (size_t i = 0; i < catalog->length; i++)
- icclient_product_free(catalog->products[i]);
- free(catalog);
- catalog = NULL;
-}
-
void icclient_cleanup()
{
if (curl) {