remove some unused stuff
[project/uci.git] / uci.h
diff --git a/uci.h b/uci.h
index 44f947f..ac85105 100644 (file)
--- a/uci.h
+++ b/uci.h
@@ -341,7 +341,7 @@ struct uci_package
        struct uci_element e;
        struct uci_list sections;
        struct uci_context *ctx;
        struct uci_element e;
        struct uci_list sections;
        struct uci_context *ctx;
-       bool confdir;
+       bool has_history;
        char *path;
 
        /* private: */
        char *path;
 
        /* private: */
@@ -402,9 +402,6 @@ struct uci_history
  * @_type: config, section or option
  * @_ptr: pointer to the uci_list struct
  */
  * @_type: config, section or option
  * @_ptr: pointer to the uci_list struct
  */
-#define element_to(type, ptr) \
-       container_of(ptr, struct uci_ ## type, e)
-
 #define list_to_element(ptr) \
        container_of(ptr, struct uci_element, list)
 
 #define list_to_element(ptr) \
        container_of(ptr, struct uci_element, list)