slurmrestd - Merge _http_context_new() into setup_http_context()

setup_http_context() no longer needs to be a separate allocator.

Issue: 50189
diff --git a/src/slurmrestd/http.c b/src/slurmrestd/http.c
index 1b033b4..e4915f4 100644
--- a/src/slurmrestd/http.c
+++ b/src/slurmrestd/http.c
@@ -762,20 +762,12 @@
 	return rc;
 }
 
-static http_context_t *_http_context_new(void)
-{
-	http_context_t *context = xmalloc(sizeof(*context));
-	context->magic = MAGIC;
-	return context;
-}
-
 extern http_context_t *setup_http_context(conmgr_fd_t *con,
 					  on_http_request_t on_http_request)
 {
-	http_context_t *context = _http_context_new();
+	http_context_t *context = xmalloc(sizeof(*context));
 
-	xassert(context->magic == MAGIC);
-	xassert(!context->con);
+	context->magic = MAGIC;
 	context->con = con;
 	context->ref = conmgr_fd_new_ref(con);
 	context->on_http_request = on_http_request;