diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-13 08:40:26 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-13 08:40:26 +0800 |
| commit | daf858c02db1a5a12151d142ce55dfe9fbb2b715 (patch) | |
| tree | d6343c4f8b7ef9bad9e3a17264b201f6b8012791 /product.c | |
| parent | 0a6e2943843ca894abc562ba98bcbf3399769481 (diff) | |
Merge catalog and product to client
Diffstat (limited to 'product.c')
| -rw-r--r-- | product.c | 23 |
1 files changed, 0 insertions, 23 deletions
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 <stdlib.h> -#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); -} |