]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Revert "add API to clear request_data"
authorAlan T. DeKok <aland@freeradius.org>
Thu, 12 Dec 2019 17:39:49 +0000 (12:39 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 12 Dec 2019 17:43:37 +0000 (12:43 -0500)
This reverts commit 33c8af9031618f293195802facfd5ab3cb3433dc.

no longer needed

src/lib/server/request_data.c
src/lib/server/request_data.h

index aaf8d6ba5d955b7bdcd5ad8bf1c6353678407360..120bddaad33f8c9a440d865b6e200c2d9a2d55ae 100644 (file)
@@ -653,17 +653,3 @@ bool request_data_verify_parent(TALLOC_CTX *parent, fr_dlist_head_t *entry)
        return true;
 }
 #endif
-
-/** Clear all of the request data associated with a request.
- *
- */
-int request_data_clear(REQUEST *request)
-{
-       request_data_t  *rd = NULL;
-
-       while ((rd = fr_dlist_next(&request->data, rd))) {
-               if (talloc_free(rd) < 0) return -1;
-       }
-
-       return 0;
-}
index c6c521b01e5bb48f410487a7e3e5117dac2122e2..a09fe1baeb1401d5a32549360fd571e9a1553d7a 100644 (file)
@@ -75,8 +75,6 @@ bool          request_data_persistable(request_data_t *rd);
 bool           request_data_verify_parent(TALLOC_CTX *parent, fr_dlist_head_t *entry);
 #endif
 
-int            request_data_clear(REQUEST *request);
-
 #ifdef __cplusplus
 }
 #endif