uci: macro uci_alloc_element not in uci.h
[project/uci.git] / uci.h
diff --git a/uci.h b/uci.h
index b385e2be964fc4a891833ede584fba6c8fa208cb..d0374f20a00bd4dfb5a900eb39b30beba1e50c55 100644 (file)
--- a/uci.h
+++ b/uci.h
@@ -613,16 +613,6 @@ BUILD_CAST(option)
 #define uci_to_option(ptr)  container_of(ptr, struct uci_option, e)
 #endif
 
-/**
- * uci_alloc_element: allocate a generic uci_element, reserve a buffer and typecast
- * @ctx: uci context
- * @type: {package,section,option}
- * @name: string containing the name of the element
- * @datasize: additional buffer size to reserve at the end of the struct
- */
-#define uci_alloc_element(ctx, type, name, datasize) \
-       uci_to_ ## type (uci_alloc_generic(ctx, uci_type_ ## type, name, sizeof(struct uci_ ## type) + datasize))
-
 #define uci_dataptr(ptr) \
        (((char *) ptr) + sizeof(*ptr))