|
29 | 29 | #include "common/common.h" |
30 | 30 | #include "options/m_property.h" |
31 | 31 | #include "common/msg.h" |
32 | | -#include "common/msg_control.h" |
33 | 32 | #include "common/stats.h" |
34 | 33 | #include "options/m_option.h" |
35 | 34 | #include "input/input.h" |
@@ -565,21 +564,6 @@ static int checkopt(js_State *J, int idx, const char *def, const char *opts[], |
565 | 564 | js_error(J, "Invalid %s '%s'", desc, opt); |
566 | 565 | } |
567 | 566 |
|
568 | | -// args: level as string and a variable numbers of args to print. adds final \n |
569 | | -static void script_log(js_State *J) |
570 | | -{ |
571 | | - const char *level = js_tostring(J, 1); |
572 | | - int msgl = mp_msg_find_level(level); |
573 | | - if (msgl < 0) |
574 | | - js_error(J, "Invalid log level '%s'", level); |
575 | | - |
576 | | - struct mp_log *log = jctx(J)->log; |
577 | | - for (int top = js_gettop(J), i = 2; i < top; i++) |
578 | | - mp_msg(log, msgl, (i == 2 ? "%s" : " %s"), js_tostring(J, i)); |
579 | | - mp_msg(log, msgl, "\n"); |
580 | | - push_success(J); |
581 | | -} |
582 | | - |
583 | 567 | static void script_find_config_file(js_State *J, void *af) |
584 | 568 | { |
585 | 569 | const char *fname = js_tostring(J, 1); |
@@ -1155,7 +1139,6 @@ struct fn_entry { |
1155 | 1139 | // Names starting with underscore are wrapped at @defaults.js |
1156 | 1140 | // FN_ENTRY is a normal js C function, AF_ENTRY is an autofree js C function. |
1157 | 1141 | static const struct fn_entry main_fns[] = { |
1158 | | - FN_ENTRY(log, 1), |
1159 | 1142 | AF_ENTRY(wait_event, 1), |
1160 | 1143 | FN_ENTRY(_request_event, 2), |
1161 | 1144 | AF_ENTRY(find_config_file, 1), |
|
0 commit comments