From e62769b361c6c3f71e2d86b48dd12415ee0926b4 Mon Sep 17 00:00:00 2001 From: deepend Date: Wed, 25 Feb 2026 02:30:46 -0700 Subject: [PATCH] Cleaned up unneeded comments in DCC receive/connect code by removing: a stale commented-out ACK block in the DCC receive error path, an unnecessary speculative note before the quoted filename handling, and an editorial inline comment on a static variable declaration. --- src/common/dcc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/common/dcc.c b/src/common/dcc.c index 4eb5b409..a8fb68fa 100644 --- a/src/common/dcc.c +++ b/src/common/dcc.c @@ -743,9 +743,6 @@ dcc_read (GIOChannel *source, GIOCondition condition, struct DCC *dcc) EMIT_SIGNAL (XP_TE_DCCRECVERR, dcc->serv->front_session, dcc->file, dcc->destfile, dcc->nick, errorstring ((n < 0) ? sock_error () : 0), 0); - /* send ack here? but the socket is dead */ - /*if (need_ack) - dcc_send_ack (dcc);*/ dcc_close (dcc, STAT_FAILED, FALSE); return TRUE; } @@ -1383,7 +1380,6 @@ dcc_connect (struct DCC *dcc) dcc_close (dcc, STAT_FAILED, FALSE); return; } - /* possible problems with filenames containing spaces? */ if (dcc->type == TYPE_RECV) g_snprintf (tbuf, sizeof (tbuf), strchr (dcc->file, ' ') ? "DCC SEND \"%s\" %u %d %" G_GUINT64_FORMAT " %d" : @@ -1720,7 +1716,7 @@ dcc_listen_init (struct DCC *dcc, session *sess) } static struct session *dccsess; -static char *dccto; /* lame!! */ +static char *dccto; static gint64 dccmaxcps; static int recursive = FALSE;