From: Pavel Shlyak Date: Mon, 21 Oct 2019 13:20:40 +0000 (+0000) Subject: Cleanup duplicates in clients.c (#991) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fheads%2Fdevelop;p=transmission Cleanup duplicates in clients.c (#991) --- diff --git a/libtransmission/clients.c b/libtransmission/clients.c index 81d4cbddb..f9cf568f6 100644 --- a/libtransmission/clients.c +++ b/libtransmission/clients.c @@ -279,10 +279,6 @@ char* tr_clientForId(char* buf, size_t buflen, void const* id_in) { four_digits(buf, buflen, "Avicora", id + 3); } - else if (strncmp(chid + 1, "BB", 2) == 0) - { - four_digits(buf, buflen, "BitBuddy", id + 3); - } else if (strncmp(chid + 1, "BE", 2) == 0) { four_digits(buf, buflen, "BitTorrent SDK", id + 3); @@ -319,10 +315,6 @@ char* tr_clientForId(char* buf, size_t buflen, void const* id_in) { four_digits(buf, buflen, "BitWombat", id + 3); } - else if (strncmp(chid + 1, "BX", 2) == 0) - { - four_digits(buf, buflen, "BittorrentX", id + 3); - } else if (strncmp(chid + 1, "EB", 2) == 0) { four_digits(buf, buflen, "EBit", id + 3); @@ -500,10 +492,6 @@ char* tr_clientForId(char* buf, size_t buflen, void const* id_in) four_digits(buf, buflen, "Zona", id + 3); } /* */ - else if (strncmp(chid + 1, "AG", 2) == 0) - { - three_digits(buf, buflen, "Ares", id + 3); - } else if (strncmp(chid + 1, "A~", 2) == 0) { three_digits(buf, buflen, "Ares", id + 3); @@ -532,10 +520,6 @@ char* tr_clientForId(char* buf, size_t buflen, void const* id_in) { three_digits(buf, buflen, "pbTorrent", id + 3); } - else if (strncmp(chid + 1, "TT", 2) == 0) - { - three_digits(buf, buflen, "TuoTu", id + 3); - } else if (strncmp(chid + 1, "qB", 2) == 0) { three_digits(buf, buflen, "qBittorrent", id + 3);