From 8308aff4c30c2d162372f58e06b77bc4250dabc2 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Fri, 11 Apr 2025 10:07:47 +0200 Subject: [PATCH] Cleanup --- base/tools/amake/main.c | 9 --------- base/tools/make.js | 8 -------- 2 files changed, 17 deletions(-) diff --git a/base/tools/amake/main.c b/base/tools/amake/main.c index 4e5aabfc..1a36b83d 100644 --- a/base/tools/amake/main.c +++ b/base/tools/amake/main.c @@ -53,14 +53,6 @@ static JSValue js_os_exec_win(JSContext *ctx, JSValue this_val, int argc, JSValu return JS_UNDEFINED; } -void hlslbin(const char *from, const char *to); -JSValue js_hlslbin(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { - const char *from = JS_ToCString(ctx, argv[0]); - const char *to = JS_ToCString(ctx, argv[1]); - hlslbin(from , to); - return JS_UNDEFINED; -} - #endif void alang(char *source, char *output); @@ -133,7 +125,6 @@ int main(int argc, char **argv) { JS_SetPropertyStr(ctx, amake, "export_png", JS_NewCFunction(ctx, js_export_png, "export_png", 4)); #ifdef _WIN32 JS_SetPropertyStr(ctx, amake, "os_exec_win", JS_NewCFunction(ctx, js_os_exec_win, "os_exec_win", 1)); - JS_SetPropertyStr(ctx, amake, "hlslbin", JS_NewCFunction(ctx, js_hlslbin, "hlslbin", 1)); #endif JS_SetPropertyStr(ctx, amake, "alang", JS_NewCFunction(ctx, js_alang, "alang", 2)); JS_SetPropertyStr(ctx, amake, "ashader", JS_NewCFunction(ctx, js_ashader, "ashader", 3)); diff --git a/base/tools/make.js b/base/tools/make.js index 6ea7eb31..54222cd0 100644 --- a/base/tools/make.js +++ b/base/tools/make.js @@ -3275,7 +3275,6 @@ let goptions = { alangjs: false, js: false, ashader: false, - hlslbin: false, }; let args = scriptArgs; @@ -3310,13 +3309,6 @@ if (goptions.ashader) { std.exit(); } -if (goptions.hlslbin) { - let from = args[3]; - let to = args[4]; - amake.hlslbin(from, to); - std.exit(); -} - if (goptions.run) { goptions.compile = true; }