Commit 4e21891
committed
Phase 122: Remove unused ctb(int) overload
Removed the `lu_byte ctb(int)` overload from ltvalue.h as it was unused.
All ctb() calls in the codebase use LuaT enum values, which call the
`LuaT ctb(LuaT)` overload. This simplifies the API and removes dead code.
Analysis:
- Searched codebase for all ctb() calls
- All calls use LuaT::* enum values (SHRSTR, LNGSTR, etc.)
- Calls like ctb(s->getType()) pass LuaT (from GCBase::getType())
- No integer literals or LUA_T* macros passed to ctb()
Changes:
- src/objects/ltvalue.h:318 - Removed ctb(int) overload
Testing:
- Build: ✅ Success (no compilation errors)
- Tests: ✅ All pass ("final OK !!!")
- Performance: ~4.46s avg (within normal variance)1 parent 99366a0 commit 4e21891
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
319 | 318 | | |
320 | 319 | | |
321 | 320 | | |
| |||
0 commit comments