refactor: retire GCObject.shallow_copy()

Collector gets this info from gc-owned object header
This commit is contained in:
Roland Conybeare 2026-04-04 18:01:25 -04:00
commit bf8c3628ff
2 changed files with 3 additions and 19 deletions

View file

@ -897,19 +897,12 @@ namespace xo {
// ----- gc support -----
#ifdef OBSOLETE
std::size_t
ParserStateMachine::shallow_size() const noexcept
void
ParserStateMachine::shallow_copy(obj<ACollector> gc) noexcept
{
return sizeof(ParserStateMachine);
}
ParserStateMachine *
ParserStateMachine::shallow_copy(obj<AAllocator> mm) const noexcept
{
(void)mm;
(void)gc;
assert(false);
return nullptr;
}
#endif