소스 검색

Remove obsolete '--enable-coroutines' option

Hugo Musso Gualandi 4 년 전
부모
커밋
40f3d298b5
2개의 변경된 파일0개의 추가작업 그리고 10개의 파일을 삭제
  1. 0 5
      src/luaot-trampoline.c
  2. 0 5
      src/luaot.c

+ 0 - 5
src/luaot-trampoline.c

@@ -34,7 +34,6 @@ static const char *program_name    = "luaot";
 static const char *input_filename  = NULL;
 static const char *output_filename = NULL;
 static const char *module_name     = NULL;
-static int enable_coroutines = 0;
 static FILE * output_file = NULL;
 static int nfunctions = 0;
 static TString **tmname;
@@ -93,10 +92,6 @@ static void doargs(int argc, char **argv)
         if (do_opts && arg[0] == '-') {
             if (0 == strcmp(arg, "--")) {
                 do_opts = 0;
-            } else if (0 == strcmp(arg, "--coro")) {
-                enable_coroutines = 1;
-            } else if (0 == strcmp(arg, "--no-coro")) {
-                enable_coroutines = 0;
             } else if (0 == strcmp(arg, "-h")) {
                 usage();
                 exit(0);

+ 0 - 5
src/luaot.c

@@ -34,7 +34,6 @@ static const char *program_name    = "luaot";
 static const char *input_filename  = NULL;
 static const char *output_filename = NULL;
 static const char *module_name     = NULL;
-static int enable_coroutines = 0;
 static FILE * output_file = NULL;
 static int nfunctions = 0;
 static TString **tmname;
@@ -93,10 +92,6 @@ static void doargs(int argc, char **argv)
         if (do_opts && arg[0] == '-') {
             if (0 == strcmp(arg, "--")) {
                 do_opts = 0;
-            } else if (0 == strcmp(arg, "--coro")) {
-                enable_coroutines = 1;
-            } else if (0 == strcmp(arg, "--no-coro")) {
-                enable_coroutines = 0;
             } else if (0 == strcmp(arg, "-h")) {
                 usage();
                 exit(0);