Skip to content

Commit 81400be

Browse files
committed
remove tnames
1 parent 2d4f488 commit 81400be

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/runtime/js.zig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -710,8 +710,6 @@ pub fn Env(comptime S: type, comptime types: anytype) type {
710710
if (un.tag_type) |UnionTagType| {
711711
inline for (un.fields) |field| {
712712
if (value == @field(UnionTagType, field.name)) {
713-
const tname = @typeName(@TypeOf(value));
714-
_ = tname;
715713
return zigValueToJs(templates, isolate, context, @field(value, field.name));
716714
}
717715
}
@@ -911,8 +909,6 @@ pub fn Env(comptime S: type, comptime types: anytype) type {
911909
// we have a v8.Context, we can get the executor.
912910
fn mapZigInstanceToJs(context: v8.Context, js_obj_or_template: anytype, value: anytype) !PersistentObject {
913911
const executor: *Executor = @ptrFromInt(context.getEmbedderData(1).castTo(v8.BigInt).getUint64());
914-
const tname = @typeName(@TypeOf(value));
915-
_ = tname;
916912
return executor._mapZigInstanceToJs(js_obj_or_template, value);
917913
}
918914

@@ -966,8 +962,6 @@ pub fn Env(comptime S: type, comptime types: anytype) type {
966962
const isolate = self.isolate;
967963

968964
if (isEmpty(ptr.child) == false) {
969-
const tname = @typeName(T);
970-
_ = tname;
971965
// The TAO contains the pointer ot our Zig instance as
972966
// well as any meta data we'll need to use it later.
973967
// See the TaggedAnyOpaque struct for more details.

0 commit comments

Comments
 (0)