Commit 0ca0e30
committed
Phase 122: Remove 6 additional unused legacy functions from ltvalue.h
Removed unused legacy helper functions and lu_byte overloads:
1. val_() - Old Value accessor (4 overloads) - 0 usages
2. valraw() - Old Value accessor wrapper (2 overloads) - 0 usages
3. rawtt_byte() - lu_byte version of rawtt - 0 usages
4. ttypetag_byte() - lu_byte version of ttypetag - 0 usages
5. checktag(const TValue* o, lu_byte t) - lu_byte overload - 0 usages
6. settt_(TValue* o, lu_byte t) - lu_byte overload - 0 usages
All current callers use LuaT enum types, making these legacy lu_byte
overloads and wrappers unnecessary. This continues the modernization
from Phase 122 Part 1 (removing ctb(int) overload).
Analysis:
- Searched codebase for usage of each function
- All are either completely unused or have LuaT-based alternatives
- All current checktag() calls use LuaT arguments
- All current settt_() calls use LuaT arguments
Changes:
- src/objects/ltvalue.h: Removed 6 legacy functions/overloads
- Total lines removed: 10
Testing:
- Build: ✅ Success (no compilation errors)
- Tests: ✅ All pass ("final OK !!!")
- Performance: ~4.52s avg (within normal variance)1 parent 4e21891 commit 0ca0e30
1 file changed
+0
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | 279 | | |
287 | 280 | | |
288 | | - | |
289 | 281 | | |
290 | 282 | | |
291 | 283 | | |
| |||
296 | 288 | | |
297 | 289 | | |
298 | 290 | | |
299 | | - | |
300 | 291 | | |
301 | 292 | | |
302 | 293 | | |
| |||
307 | 298 | | |
308 | 299 | | |
309 | 300 | | |
310 | | - | |
311 | 301 | | |
312 | 302 | | |
313 | 303 | | |
| |||
326 | 316 | | |
327 | 317 | | |
328 | 318 | | |
329 | | - | |
330 | 319 | | |
331 | 320 | | |
332 | 321 | | |
0 commit comments