Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
zefhemel committed Jan 15, 2025
1 parent 4531eb9 commit bd05ac2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions common/space_lua/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bd05ac2

Please sign in to comment.