]> granicus.if.org Git - transmission/commitdiff
Cleanup duplicates in clients.c (#991) develop
authorPavel Shlyak <shlyak-pavel2011@ya.ru>
Mon, 21 Oct 2019 13:20:40 +0000 (13:20 +0000)
committerCharles Kerr <ckerr@github.com>
Mon, 21 Oct 2019 13:20:40 +0000 (08:20 -0500)
libtransmission/clients.c

index 81d4cbddb027e747f2bfbc01372b2d5dd66ea8ae..f9cf568f69abfa6546f57ca3ebe7a53caf6e5c7d 100644 (file)
@@ -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);