]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
multi: Remove 10-year old out-commented code
authorEmil Engler <me@emilengler.com>
Wed, 12 Aug 2020 09:58:11 +0000 (11:58 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 12 Aug 2020 13:28:46 +0000 (15:28 +0200)
The code hasn't been touched since 2010-08-18

Closes #5805

lib/multi.c

index 75c76e8190c79a47a75dcc6de9f2c608917456d6..b3a75e1374871cac4c208542310be7ccaf8eee87 100644 (file)
@@ -984,19 +984,6 @@ static int multi_getsock(struct Curl_easy *data,
 
   switch(data->mstate) {
   default:
-#if 0 /* switch back on these cases to get the compiler to check for all enums
-         to be present */
-  case CURLM_STATE_TOOFAST:  /* returns 0, so will not select. */
-  case CURLM_STATE_COMPLETED:
-  case CURLM_STATE_MSGSENT:
-  case CURLM_STATE_INIT:
-  case CURLM_STATE_CONNECT:
-  case CURLM_STATE_WAITDO:
-  case CURLM_STATE_DONE:
-  case CURLM_STATE_LAST:
-    /* this will get called with CURLM_STATE_COMPLETED when a handle is
-       removed */
-#endif
     return 0;
 
   case CURLM_STATE_WAITRESOLVE: