From daf858c02db1a5a12151d142ce55dfe9fbb2b715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sun, 13 Jun 2021 08:40:26 +0800 Subject: Merge catalog and product to client --- product.c | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 product.c (limited to 'product.c') diff --git a/product.c b/product.c deleted file mode 100644 index 0323192..0000000 --- a/product.c +++ /dev/null @@ -1,23 +0,0 @@ -#include -#include "icclient/product.h" - -void icclient_product_free(struct icclient_product *product) -{ - if (product->crosssell) - for (size_t i = 0; i < product->crosssell->length; i++) - free(product->crosssell->skus[i]); - if (product->author) - free(product->author); - if (product->prod_group) - free(product->prod_group); - if (product->image) - free(product->image); - if (product->thumb) - free(product->thumb); - if (product->comment) - free(product->comment); - if (product->description) - free(product->description); - free(product->sku); - free(product); -} -- cgit v1.2.3