summaryrefslogtreecommitdiff
path: root/product.c
diff options
context:
space:
mode:
Diffstat (limited to 'product.c')
-rw-r--r--product.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/product.c b/product.c
deleted file mode 100644
index 33286cd..0000000
--- a/product.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include <stdlib.h>
-#include "icclient/product.h"
-
-void icclient_catalog_free(struct icclient_catalog *catalog)
-{
- for (size_t i = 0; i < catalog->length; i++) {
- struct icclient_product *product = catalog->products[i];
- if (product->image)
- free(product->image);
- if (product->comment)
- free(product->comment);
- if (product->description)
- free(product->description);
- free(product->sku);
- free(product);
- }
- free(catalog);
- catalog = NULL;
-}