From 1cd3ebfc3ff169292ece702e9f230db5e96e60bb Mon Sep 17 00:00:00 2001 From: sjorsdonkers <72333389+sjorsdonkers@users.noreply.github.com> Date: Fri, 18 Apr 2025 11:56:59 +0200 Subject: [PATCH] remove tnames --- src/runtime/js.zig | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/runtime/js.zig b/src/runtime/js.zig index 3d8a25ab..450d3d9c 100644 --- a/src/runtime/js.zig +++ b/src/runtime/js.zig @@ -710,8 +710,6 @@ pub fn Env(comptime S: type, comptime types: anytype) type { if (un.tag_type) |UnionTagType| { inline for (un.fields) |field| { if (value == @field(UnionTagType, field.name)) { - const tname = @typeName(@TypeOf(value)); - _ = tname; return zigValueToJs(templates, isolate, context, @field(value, field.name)); } } @@ -911,8 +909,6 @@ pub fn Env(comptime S: type, comptime types: anytype) type { // we have a v8.Context, we can get the executor. fn mapZigInstanceToJs(context: v8.Context, js_obj_or_template: anytype, value: anytype) !PersistentObject { const executor: *Executor = @ptrFromInt(context.getEmbedderData(1).castTo(v8.BigInt).getUint64()); - const tname = @typeName(@TypeOf(value)); - _ = tname; return executor._mapZigInstanceToJs(js_obj_or_template, value); } @@ -966,8 +962,6 @@ pub fn Env(comptime S: type, comptime types: anytype) type { const isolate = self.isolate; if (isEmpty(ptr.child) == false) { - const tname = @typeName(T); - _ = tname; // The TAO contains the pointer ot our Zig instance as // well as any meta data we'll need to use it later. // See the TaggedAnyOpaque struct for more details.