Skip to content

Commit 2000752

Browse files
committed
Remove dead code
1 parent dd34830 commit 2000752

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

examples/esp32/main/main.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,9 @@ static void cb(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
2626
if (mg_http_match_uri(hm, "/api/stats")) {
2727
mg_http_reply(c, 200, "", "{\"ram\": %lu}\n", xPortGetFreeHeapSize());
2828
} else {
29-
// mg_http_reply(c, 404, "", "Not found: %d\n", MG_PATH_MAX);
30-
// return;
3129
struct mg_fs fs = mg_fs_posix;
3230
fs.stat = my_stat;
3331
struct mg_http_serve_opts opts = {.root_dir = FS_ROOT, .fs = &fs};
34-
// opts.fs = NULL;
3532
mg_http_serve_dir(c, hm, &opts);
3633
}
3734
}

0 commit comments

Comments
 (0)