Remove dead code

pull/1212/head
Zef Hemel 2025-01-15 20:49:05 +01:00
parent 4531eb936b
commit bd05ac206b
1 changed files with 0 additions and 12 deletions

View File

@ -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;