diff mbox series

[05/21] mongoose: Remove deprecated events MG_EV_HTTP_MULTIPART_REQUEST

Message ID 20240615191941.40301-6-Michael.Glembotzki@iris-sensing.com
State New
Headers show
Series Update Mongoose to 7.14 | expand

Commit Message

Michael Glembotzki June 15, 2024, 7:11 p.m. UTC
Events MG_EV_HTTP_MULTIPART_REQUEST and MG_EV_HTTP_MULTIPART_REQUEST_END
have been removed in 7.0. The mg_call()'s have no effect.

Signed-off-by: Michael Glembotzki <Michael.Glembotzki@iris-sensing.com>
---
 mongoose/mongoose_multipart.c | 4 ----
 mongoose/mongoose_multipart.h | 6 ++----
 2 files changed, 2 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/mongoose/mongoose_multipart.c b/mongoose/mongoose_multipart.c
index 5e57d326..fb62c1e4 100644
--- a/mongoose/mongoose_multipart.c
+++ b/mongoose/mongoose_multipart.c
@@ -112,9 +112,6 @@  static void mg_http_multipart_begin(struct mg_connection *c,
 		mp_stream->part.name.len = mp_stream->part.filename.len = 0;
 		mp_stream->len = hm->body.len;
 		c->pfn_data = mp_stream;
-
-		mg_call(c, MG_EV_HTTP_MULTIPART_REQUEST, hm);
-
 		mg_iobuf_del(io, 0, hm->head.len + 2);
 	}
 }
@@ -149,7 +146,6 @@  static void mg_http_multipart_finalize(struct mg_connection *c) {
 	mp_stream->part.filename.ptr = NULL;
 	free((void *) mp_stream->part.name.ptr);
 	mp_stream->part.name.ptr = NULL;
-	mg_http_multipart_call_handler(c, MG_EV_HTTP_MULTIPART_REQUEST_END, NULL, 0);
 	mg_http_free_proto_data_mp_stream(mp_stream);
 	mp_stream->state = MPS_FINISHED;
 	free(mp_stream);
diff --git a/mongoose/mongoose_multipart.h b/mongoose/mongoose_multipart.h
index 552ede2d..1d2b7dcf 100644
--- a/mongoose/mongoose_multipart.h
+++ b/mongoose/mongoose_multipart.h
@@ -22,11 +22,9 @@ 
 #include "mongoose.h"
 
 enum {
-	MG_EV_HTTP_MULTIPART_REQUEST=MG_EV_USER + 1,  // struct mg_http_message *
-	MG_EV_HTTP_PART_BEGIN,                        // struct mg_http_multipart_part *
+	MG_EV_HTTP_PART_BEGIN=MG_EV_USER + 1,         // struct mg_http_multipart_part *
 	MG_EV_HTTP_PART_DATA,                         // struct mg_http_multipart_part *
-	MG_EV_HTTP_PART_END,                          // struct mg_http_multipart_part *
-	MG_EV_HTTP_MULTIPART_REQUEST_END              // struct mg_http_multipart_part *
+	MG_EV_HTTP_PART_END                           // struct mg_http_multipart_part *
 };
 
 /* HTTP multipart part */