@@ -190,9 +190,6 @@ static bool rest_headers(HTTPRequest* req,
190
190
return RESTERR (req, HTTP_NOT_FOUND, " output format not found (available: .bin, .hex)" );
191
191
}
192
192
}
193
-
194
- // not reached
195
- return true ; // continue to process further HTTP reqs on this cxn
196
193
}
197
194
198
195
static bool rest_block (HTTPRequest* req,
@@ -253,9 +250,6 @@ static bool rest_block(HTTPRequest* req,
253
250
return RESTERR (req, HTTP_NOT_FOUND, " output format not found (available: " + AvailableDataFormatsString () + " )" );
254
251
}
255
252
}
256
-
257
- // not reached
258
- return true ; // continue to process further HTTP reqs on this cxn
259
253
}
260
254
261
255
static bool rest_block_extended (HTTPRequest* req, const std::string& strURIPart)
@@ -292,9 +286,6 @@ static bool rest_chaininfo(HTTPRequest* req, const std::string& strURIPart)
292
286
return RESTERR (req, HTTP_NOT_FOUND, " output format not found (available: json)" );
293
287
}
294
288
}
295
-
296
- // not reached
297
- return true ; // continue to process further HTTP reqs on this cxn
298
289
}
299
290
300
291
static bool rest_mempool_info (HTTPRequest* req, const std::string& strURIPart)
@@ -317,9 +308,6 @@ static bool rest_mempool_info(HTTPRequest* req, const std::string& strURIPart)
317
308
return RESTERR (req, HTTP_NOT_FOUND, " output format not found (available: json)" );
318
309
}
319
310
}
320
-
321
- // not reached
322
- return true ; // continue to process further HTTP reqs on this cxn
323
311
}
324
312
325
313
static bool rest_mempool_contents (HTTPRequest* req, const std::string& strURIPart)
@@ -342,9 +330,6 @@ static bool rest_mempool_contents(HTTPRequest* req, const std::string& strURIPar
342
330
return RESTERR (req, HTTP_NOT_FOUND, " output format not found (available: json)" );
343
331
}
344
332
}
345
-
346
- // not reached
347
- return true ; // continue to process further HTTP reqs on this cxn
348
333
}
349
334
350
335
static bool rest_tx (HTTPRequest* req, const std::string& strURIPart)
@@ -394,9 +379,6 @@ static bool rest_tx(HTTPRequest* req, const std::string& strURIPart)
394
379
return RESTERR (req, HTTP_NOT_FOUND, " output format not found (available: " + AvailableDataFormatsString () + " )" );
395
380
}
396
381
}
397
-
398
- // not reached
399
- return true ; // continue to process further HTTP reqs on this cxn
400
382
}
401
383
402
384
static bool rest_getutxos (HTTPRequest* req, const std::string& strURIPart)
@@ -581,9 +563,6 @@ static bool rest_getutxos(HTTPRequest* req, const std::string& strURIPart)
581
563
return RESTERR (req, HTTP_NOT_FOUND, " output format not found (available: " + AvailableDataFormatsString () + " )" );
582
564
}
583
565
}
584
-
585
- // not reached
586
- return true ; // continue to process further HTTP reqs on this cxn
587
566
}
588
567
589
568
static const struct {
0 commit comments