tidy-up: drop stray "unused" comments

Closes #18453
This commit is contained in:
Viktor Szakats 2025-09-02 13:20:20 +02:00
parent 24badd29f5
commit 49145249be
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
55 changed files with 128 additions and 129 deletions

View file

@ -2840,7 +2840,7 @@ static CURLcode scp_done(struct Curl_easy *data, CURLcode status,
bool premature)
{
struct ssh_conn *sshc = Curl_conn_meta_get(data->conn, CURL_META_SSH_CONN);
(void)premature; /* not used */
(void)premature;
if(!sshc)
return CURLE_FAILED_INIT;

View file

@ -276,19 +276,19 @@ static CURLcode libssh2_session_error_to_CURLE(int err)
static LIBSSH2_ALLOC_FUNC(my_libssh2_malloc)
{
(void)abstract; /* arg not used */
(void)abstract;
return Curl_cmalloc(count);
}
static LIBSSH2_REALLOC_FUNC(my_libssh2_realloc)
{
(void)abstract; /* arg not used */
(void)abstract;
return Curl_crealloc(ptr, count);
}
static LIBSSH2_FREE_FUNC(my_libssh2_free)
{
(void)abstract; /* arg not used */
(void)abstract;
if(ptr) /* ssh2 agent sometimes call free with null ptr */
Curl_cfree(ptr);
}
@ -3732,7 +3732,7 @@ static CURLcode scp_done(struct Curl_easy *data, CURLcode status,
bool premature)
{
struct ssh_conn *sshc = Curl_conn_meta_get(data->conn, CURL_META_SSH_CONN);
(void)premature; /* not used */
(void)premature;
if(sshc && !status)
myssh_state(data, sshc, SSH_SCP_DONE);