From 2000752b2c636a5c5a57141aa80cd4c2588076b4 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Thu, 11 Nov 2021 15:15:47 +0000 Subject: [PATCH] Remove dead code --- examples/esp32/main/main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/esp32/main/main.c b/examples/esp32/main/main.c index 3727ef9c..a47e47a4 100644 --- a/examples/esp32/main/main.c +++ b/examples/esp32/main/main.c @@ -26,12 +26,9 @@ static void cb(struct mg_connection *c, int ev, void *ev_data, void *fn_data) { if (mg_http_match_uri(hm, "/api/stats")) { mg_http_reply(c, 200, "", "{\"ram\": %lu}\n", xPortGetFreeHeapSize()); } else { - // mg_http_reply(c, 404, "", "Not found: %d\n", MG_PATH_MAX); - // return; struct mg_fs fs = mg_fs_posix; fs.stat = my_stat; struct mg_http_serve_opts opts = {.root_dir = FS_ROOT, .fs = &fs}; - // opts.fs = NULL; mg_http_serve_dir(c, hm, &opts); } }