summaryrefslogtreecommitdiff
path: root/lib/conncache.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-02-15 10:15:46 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-02-16 10:48:57 +0100
commitcfff12a0b3d8696e5923064ea4e35e14a4f78da0 (patch)
tree40907a5b1d6bc3827e2cff454c72ce6c05d2fb4e /lib/conncache.c
parenta59c33ceffb8f78b71fa084bbc99c94ecfe82ce6 (diff)
downloadcurl-cfff12a0b3d8696e5923064ea4e35e14a4f78da0.tar.gz
lib: remove 'conn->data' completely
The Curl_easy pointer struct entry in connectdata is now gone. Just before commit 215db086e0 landed on January 8, 2021 there were 919 references to conn->data. Closes #6608
Diffstat (limited to 'lib/conncache.c')
-rw-r--r--lib/conncache.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/conncache.c b/lib/conncache.c
index 8dfdc0ac8..5453c00f3 100644
--- a/lib/conncache.c
+++ b/lib/conncache.c
@@ -466,7 +466,6 @@ Curl_conncache_extract_bundle(struct Curl_easy *data,
data->state.conn_cache->num_conn--;
DEBUGF(infof(data, "The cache now contains %zu members\n",
data->state.conn_cache->num_conn));
- conn_candidate->data = data; /* associate! */
}
return conn_candidate;
@@ -529,7 +528,6 @@ Curl_conncache_extract_oldest(struct Curl_easy *data)
connc->num_conn--;
DEBUGF(infof(data, "The cache now contains %zu members\n",
connc->num_conn));
- conn_candidate->data = data; /* associate! */
}
CONNCACHE_UNLOCK(data);