From bd05ac206bdb22b50a1d711e41028501c4a34c80 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Wed, 15 Jan 2025 20:49:05 +0100 Subject: [PATCH] Remove dead code --- common/space_lua/runtime.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/common/space_lua/runtime.ts b/common/space_lua/runtime.ts index e54aef04..e61b8a6a 100644 --- a/common/space_lua/runtime.ts +++ b/common/space_lua/runtime.ts @@ -529,18 +529,6 @@ export function luaGet( } } -function isClass(obj: any) { - const isCtorClass = obj.constructor && - obj.constructor.toString().substring(0, 5) === "class"; - if (obj.prototype === undefined) { - return isCtorClass; - } - const isPrototypeCtorClass = obj.prototype.constructor && - obj.prototype.constructor.toString && - obj.prototype.constructor.toString().substring(0, 5) === "class"; - return isCtorClass || isPrototypeCtorClass; -} - export function luaLen(obj: any): number { if (obj instanceof LuaTable) { return obj.length;