From 2ef07517b65e98c0c68bbff0ca2467434a1835d2 Mon Sep 17 00:00:00 2001 From: Pavel Shlyak Date: Mon, 21 Oct 2019 13:20:40 +0000 Subject: [PATCH] Cleanup duplicates in clients.c (#991) --- libtransmission/clients.c | 16 ---------------- 1 file changed, 16 deletions(-) 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);