cfilters: kill connection filter events attach+detach

Make transfer attach/detach to/from connections chepaer.

- the "attach" event was no longer implemented by any filter
- the "detach" did the same as the "done" event for the filters
  who still implemented it. It should be superfluous as the "done"
  must always happen.

Closes #16067
This commit is contained in:
Stefan Eissing 2025-01-21 14:47:29 +01:00 committed by Daniel Stenberg
parent f5f8f2c892
commit cd9107e012
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
7 changed files with 0 additions and 46 deletions

View file

@ -946,7 +946,6 @@ void Curl_detach_connection(struct Curl_easy *data)
{
struct connectdata *conn = data->conn;
if(conn) {
Curl_conn_ev_data_detach(conn, data);
Curl_node_remove(&data->conn_queue);
}
data->conn = NULL;
@ -967,7 +966,6 @@ void Curl_attach_connection(struct Curl_easy *data,
Curl_llist_append(&conn->easyq, data, &data->conn_queue);
if(conn->handler && conn->handler->attach)
conn->handler->attach(data, conn);
Curl_conn_ev_data_attach(conn, data);
}
static int connecting_getsock(struct Curl_easy *data, curl_socket_t *socks)